mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop+General] Fix minimal config
This commit is contained in:
parent
1c83eb0708
commit
852b544a57
1 changed files with 5 additions and 5 deletions
10
services.nix
10
services.nix
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue