Personal Nix setup
at main 706 B view raw
1{ lib, config, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.modules.desktop; 6in { 7 options.modules.desktop.tools = { 8 enable = mkOption { 9 default = cfg.enable; 10 example = true; 11 description = "Whether to enable basic desktop tools."; 12 type = types.bool; 13 }; 14 }; 15 16 config = mkIf cfg.tools.enable { 17 home.packages = with pkgs; let 18 switchboard = (pkgs.pantheon.switchboard-with-plugs.override { 19 useDefaultPlugs = false; 20 plugs = with pkgs.pantheon; [ 21 switchboard-plug-sound 22 switchboard-plug-network 23 switchboard-plug-bluetooth 24 ]; 25 }); 26 in [ 27 pwvucontrol 28 mission-center 29 switchboard 30 ]; 31 }; 32}