simpler
This commit is contained in:
parent
477b1c03ad
commit
c42c5e3363
8 changed files with 0 additions and 60 deletions
|
|
@ -14,8 +14,6 @@
|
|||
osbmModules = {
|
||||
enableKDE = false;
|
||||
enableFonts = false;
|
||||
blockYoutube = false;
|
||||
blockTwitter = false;
|
||||
enableTailscale = true;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
osbmModules = {
|
||||
enableKDE = false;
|
||||
enableFonts = false;
|
||||
blockYoutube = false;
|
||||
blockTwitter = false;
|
||||
};
|
||||
|
||||
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
osbmModules = {
|
||||
enableKDE = false;
|
||||
enableFonts = false;
|
||||
blockYoutube = false;
|
||||
blockTwitter = false;
|
||||
enableForgejo = true;
|
||||
# enableCaddy = true;
|
||||
# enableCloudflareDyndns = true;
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
];
|
||||
|
||||
osbmModules = {
|
||||
blockYoutube = false;
|
||||
blockTwitter = true;
|
||||
blockBluesky = false;
|
||||
enableKDE = true;
|
||||
enableAarch64Emulation = true;
|
||||
enableSound = true;
|
||||
|
|
|
|||
|
|
@ -10,9 +10,6 @@
|
|||
];
|
||||
|
||||
osbmModules = {
|
||||
blockYoutube = false;
|
||||
blockTwitter = true;
|
||||
blockBluesky = false;
|
||||
enableKDE = true;
|
||||
enableJellyfin = true;
|
||||
enableAarch64Emulation = true;
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.osbmModules.concentration;
|
||||
|
||||
blockedSites = lib.flatten [
|
||||
(lib.optional cfg.blockYoutube [
|
||||
"youtube.com"
|
||||
"www.youtube.com"
|
||||
"m.youtube.com"
|
||||
"youtu.be"
|
||||
])
|
||||
(lib.optional cfg.blockTwitter [
|
||||
"twitter.com"
|
||||
"www.twitter.com"
|
||||
"x.com"
|
||||
"www.x.com"
|
||||
"mobile.twitter.com"
|
||||
"mobile.x.com"
|
||||
])
|
||||
(lib.optional cfg.blockBluesky [
|
||||
"bsky.app"
|
||||
"www.bsky.app"
|
||||
"bluesky.app"
|
||||
"www.bluesky.app"
|
||||
])
|
||||
];
|
||||
|
||||
hostsEntries = lib.concatMapStrings (site: "127.0.0.1 ${site}\n") blockedSites;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (blockedSites != []) {
|
||||
networking.extraHosts = hostsEntries;
|
||||
};
|
||||
}
|
||||
|
|
@ -7,11 +7,9 @@
|
|||
./home-manager.nix
|
||||
./virtualization.nix
|
||||
./emulation.nix
|
||||
./concentration.nix
|
||||
./remote-builds.nix
|
||||
./i18n.nix
|
||||
./fonts.nix
|
||||
./security.nix
|
||||
./nix-index.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.osbmModules.security.enable {
|
||||
# Security hardening
|
||||
security.sudo.wheelNeedsPassword = lib.mkDefault true;
|
||||
|
||||
# Polkit for privilege escalation
|
||||
security.polkit.enable = lib.mkDefault true;
|
||||
|
||||
# Additional security settings can be added here
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue