Added printing config

This commit is contained in:
Alejandro Angulo 2023-03-25 09:17:58 -07:00
parent f651667481
commit 56da54bc36
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1,23 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.apps.steam;
in {
options.aa.services.printing = with types; {
enable = mkEnableOption "printing";
};
config = mkIf cfg.enable {
# Setup printing over the network
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
};
};
}

View file

@ -32,6 +32,7 @@
domain_name = "kilonull.com"; domain_name = "kilonull.com";
subdomain_name = "gospel"; subdomain_name = "gospel";
}; };
services.printing.enable = true;
}; };
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];
@ -92,13 +93,6 @@
pulse.enable = true; pulse.enable = true;
}; };
# Setup printing over the network
services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
};
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix. # accidentally delete configuration.nix.