tangled
alpha
login
or
join now
nel.pet
/
cyclamen
4
fork
atom
NixOS and Home Manager config
4
fork
atom
overview
issues
pulls
pipelines
feat: printing
nel.pet
6 months ago
292bca30
cbdd23fa
verified
This commit was signed with the committer's
known signature
.
nel.pet
SSH Key Fingerprint:
SHA256:Zd+mWw4EweOfjYKNMYyVtMSN7oj+SBabmubG4RThVEI=
+19
-3
3 changed files
expand all
collapse all
unified
split
modules
nixos
system
default.nix
printing.nix
systems
nel-desktop
configuration.nix
+1
modules/nixos/system/default.nix
···
2
2
imports = [
3
3
./boot
4
4
./lannas.nix
5
5
+
./printing.nix
5
6
];
6
7
}
+17
modules/nixos/system/printing.nix
···
1
1
+
{ lib, config, ... }: let
2
2
+
cfg = config.cyclamen.system.printing;
3
3
+
in {
4
4
+
options.cyclamen.system.printing.enable = lib.mkEnableOption "printing";
5
5
+
6
6
+
config = lib.mkIf cfg.enable {
7
7
+
services.printing.enable = true;
8
8
+
9
9
+
# network printer discovery
10
10
+
services.avahi = {
11
11
+
enable = true;
12
12
+
nssmdns4 = true;
13
13
+
nssmdns6 = true;
14
14
+
openFirewall = true;
15
15
+
};
16
16
+
};
17
17
+
}
+1
-3
systems/nel-desktop/configuration.nix
···
11
11
};
12
12
13
13
lannas.enable = "all";
14
14
+
printing.enable = true;
14
15
};
15
16
};
16
17
···
62
63
# Configure keymap
63
64
services.xserver.xkb.layout = "dk";
64
65
console.keyMap = "dk-latin1";
65
65
-
66
66
-
# Enable CUPS to print documents.
67
67
-
services.printing.enable = true;
68
66
69
67
users.users.nel = {
70
68
isNormalUser = true;