feat: included additional system components
Moved proxy declaration to specialisation Enabled avahi Enabled CUPS printing services
This commit is contained in:
parent
61202b51c7
commit
5a2116572d
4 changed files with 22 additions and 3 deletions
|
@ -37,9 +37,13 @@
|
|||
enable = true;
|
||||
powerOnBoot = true;
|
||||
};
|
||||
networking.proxy = {
|
||||
default = "http://127.0.0.1:7897/";
|
||||
noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
specialisation = {
|
||||
in-china.configuration = {
|
||||
networking.proxy = {
|
||||
default = "http://127.0.0.1:7897/";
|
||||
noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.mpris-proxy = {
|
||||
|
|
7
nixos/services/avahi.service.nix
Normal file
7
nixos/services/avahi.service.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{...}: {
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
|
@ -4,5 +4,7 @@
|
|||
./pipewire.service.nix
|
||||
./syncthing.service.nix
|
||||
./misc.service.nix
|
||||
./avahi.service.nix
|
||||
./printing.service.nix
|
||||
];
|
||||
}
|
||||
|
|
6
nixos/services/printing.service.nix
Normal file
6
nixos/services/printing.service.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{...}: {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = [];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue