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,10 +37,14 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
};
|
};
|
||||||
|
specialisation = {
|
||||||
|
in-china.configuration = {
|
||||||
networking.proxy = {
|
networking.proxy = {
|
||||||
default = "http://127.0.0.1:7897/";
|
default = "http://127.0.0.1:7897/";
|
||||||
noProxy = "127.0.0.1,localhost,internal.domain";
|
noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.mpris-proxy = {
|
systemd.user.services.mpris-proxy = {
|
||||||
description = "Mpris proxy";
|
description = "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
|
./pipewire.service.nix
|
||||||
./syncthing.service.nix
|
./syncthing.service.nix
|
||||||
./misc.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