simpler
This commit is contained in:
parent
477b1c03ad
commit
c42c5e3363
8 changed files with 0 additions and 60 deletions
|
|
@ -14,8 +14,6 @@
|
||||||
osbmModules = {
|
osbmModules = {
|
||||||
enableKDE = false;
|
enableKDE = false;
|
||||||
enableFonts = false;
|
enableFonts = false;
|
||||||
blockYoutube = false;
|
|
||||||
blockTwitter = false;
|
|
||||||
enableTailscale = true;
|
enableTailscale = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
osbmModules = {
|
osbmModules = {
|
||||||
enableKDE = false;
|
enableKDE = false;
|
||||||
enableFonts = false;
|
enableFonts = false;
|
||||||
blockYoutube = false;
|
|
||||||
blockTwitter = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
i18n.inputMethod.enable = lib.mkForce false; # no need for japanese input method
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@
|
||||||
osbmModules = {
|
osbmModules = {
|
||||||
enableKDE = false;
|
enableKDE = false;
|
||||||
enableFonts = false;
|
enableFonts = false;
|
||||||
blockYoutube = false;
|
|
||||||
blockTwitter = false;
|
|
||||||
enableForgejo = true;
|
enableForgejo = true;
|
||||||
# enableCaddy = true;
|
# enableCaddy = true;
|
||||||
# enableCloudflareDyndns = true;
|
# enableCloudflareDyndns = true;
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,6 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
osbmModules = {
|
osbmModules = {
|
||||||
blockYoutube = false;
|
|
||||||
blockTwitter = true;
|
|
||||||
blockBluesky = false;
|
|
||||||
enableKDE = true;
|
enableKDE = true;
|
||||||
enableAarch64Emulation = true;
|
enableAarch64Emulation = true;
|
||||||
enableSound = true;
|
enableSound = true;
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,6 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
osbmModules = {
|
osbmModules = {
|
||||||
blockYoutube = false;
|
|
||||||
blockTwitter = true;
|
|
||||||
blockBluesky = false;
|
|
||||||
enableKDE = true;
|
enableKDE = true;
|
||||||
enableJellyfin = true;
|
enableJellyfin = true;
|
||||||
enableAarch64Emulation = 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
|
./home-manager.nix
|
||||||
./virtualization.nix
|
./virtualization.nix
|
||||||
./emulation.nix
|
./emulation.nix
|
||||||
./concentration.nix
|
|
||||||
./remote-builds.nix
|
./remote-builds.nix
|
||||||
./i18n.nix
|
./i18n.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./security.nix
|
|
||||||
./nix-index.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