mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 12:51:34 +01:00
Enable driverless printing
This commit is contained in:
parent
92862ba5aa
commit
ce62cdff75
3 changed files with 18 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
optimization.mode = "powersave";
|
||||
doas.enable = false;
|
||||
nix-helper.enable = true;
|
||||
printing.enable = true;
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
|
|
|||
|
|
@ -16,5 +16,6 @@
|
|||
./sound.nix
|
||||
./boot-loader.nix
|
||||
./nix-helper.nix
|
||||
./printing.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
16
modules/system/printing.nix
Normal file
16
modules/system/printing.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.printing.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.printing.enable {
|
||||
services.printing.enable = true;
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue