[Desktop+General] Fix minimal config

This commit is contained in:
Antoine Viallon 2022-10-06 00:16:33 +02:00
parent 1c83eb0708
commit 852b544a57
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -72,7 +72,7 @@ in {
browsing = mkDefault true; browsing = mkDefault true;
listenAddresses = [ "0.0.0.0:631" ]; listenAddresses = [ "0.0.0.0:631" ];
drivers = with pkgs; [] drivers = with pkgs; []
++ (optionals (!desktopCfg.minimal) [ ++ (optionals (!generalCfg.minimal) [
hplipWithPlugin hplipWithPlugin
gutenprint gutenprint
splix splix
@ -96,10 +96,10 @@ in {
]); ]);
webInterface = mkDefault true; webInterface = mkDefault true;
}; };
services.system-config-printer.enable = mkIf (desktopCfg.enable && !desktopCfg.minimal) true; services.system-config-printer.enable = mkIf (desktopCfg.enable && !generalCfg.minimal) true;
hardware.sane = mkIf desktopCfg.enable { hardware.sane = mkIf desktopCfg.enable {
enable = !desktopCfg.minimal; enable = !generalCfg.minimal;
netConf = "192.168.0.0/24"; netConf = "192.168.0.0/24";
extraBackends = with pkgs; [ extraBackends = with pkgs; [
hplipWithPlugin hplipWithPlugin
@ -191,10 +191,10 @@ in {
programs.ssh.startAgent = false; programs.ssh.startAgent = false;
# SmartCards # SmartCards
services.pcscd.enable = mkDefault (!desktopCfg.minimal); services.pcscd.enable = mkDefault (!generalCfg.minimal);
services.avahi = { services.avahi = {
enable = !desktopCfg.minimal; # .lan/.local resolution enable = !generalCfg.minimal; # .lan/.local resolution
nssmdns = true; # .lan/.local resolution nssmdns = true; # .lan/.local resolution
openFirewall = true; openFirewall = true;
reflector = true; reflector = true;