Skip to content

Commit 3c6858c

Browse files
Merge pull request #204 from NuschtOS/slim-cleanup
slim: cleanup pre 24.11 conditionals
2 parents ab5a5f8 + 4ca2c2b commit 3c6858c

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

modules/slim.nix

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, lib, libS, options, pkgs, ... }:
1+
{ config, lib, libS, pkgs, ... }:
22

33
let
44
cfg = config.slim;
@@ -8,7 +8,7 @@ in
88
enable = libS.mkOpinionatedOption "disable some normally rarely used things to slim down the system";
99
};
1010

11-
config = lib.mkIf cfg.enable ({
11+
config = lib.mkIf cfg.enable {
1212
documentation = {
1313
# html docs and info are not required, man pages are enough
1414
doc.enable = false;
@@ -17,23 +17,14 @@ in
1717

1818
environment.defaultPackages = lib.mkForce [ ];
1919

20-
nixpkgs.overlays = lib.mkIf (!config.programs.thunderbird.enable or true) [
21-
(_final: prev: {
22-
thunderbird = prev.thunderbird.override { cfg.speechSynthesisSupport = false; };
23-
})
24-
];
25-
26-
} // lib.optionalAttrs (lib.versionAtLeast lib.version "24.11") {
2720
programs.thunderbird.package = pkgs.thunderbird.override { cfg.speechSynthesisSupport = false; };
28-
} // {
2921

3022
# during testing only 550K-650K of the tmpfs where used
3123
security.wrapperDirSize = "10M";
3224

33-
services = lib.optionalAttrs (options.services?orca) {
25+
services = {
3426
orca.enable = false; # requires speechd
35-
} // lib.optionalAttrs (options.services?speechd) {
3627
speechd.enable = false; # voice files are big and fat
3728
};
38-
});
29+
};
3930
}

0 commit comments

Comments
 (0)