tv: move nix settings to separate file

This commit is contained in:
tv 2023-01-04 16:17:42 +01:00
parent 2ad769ccdd
commit 7a45a35a58
2 changed files with 10 additions and 9 deletions

View File

@ -16,6 +16,7 @@ with import ./lib;
./nets/hkw.nix ./nets/hkw.nix
./networkd.nix ./networkd.nix
./nginx ./nginx
./nix.nix
./pki ./pki
./ssh.nix ./ssh.nix
./sshd.nix ./sshd.nix
@ -44,15 +45,6 @@ with import ./lib;
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
} }
{
nix.settings.auto-optimise-store = true;
# TODO check if both are required:
nix.settings.extra-sandbox-paths = [
"/etc/protocols"
pkgs.iana-etc.outPath
];
}
{ {
nixpkgs.config.allowUnfree = false; nixpkgs.config.allowUnfree = false;
} }

9
tv/2configs/nix.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, ... }: {
nix.settings.auto-optimise-store = true;
# TODO check if both are required:
nix.settings.extra-sandbox-paths = [
"/etc/protocols"
pkgs.iana-etc.outPath
];
}