feat: included additional system components

Moved proxy declaration to specialisation
Enabled avahi
Enabled CUPS printing services
This commit is contained in:
Zhongheng Liu 2024-08-25 18:43:16 +08:00
commit 5a2116572d
No known key found for this signature in database
4 changed files with 22 additions and 3 deletions

View file

@ -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 = {

View file

@ -0,0 +1,7 @@
{...}: {
services.avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
}

View file

@ -4,5 +4,7 @@
./pipewire.service.nix
./syncthing.service.nix
./misc.service.nix
./avahi.service.nix
./printing.service.nix
];
}

View file

@ -0,0 +1,6 @@
{...}: {
services.printing = {
enable = true;
drivers = [];
};
}