ma 2configs: use nix.settings

This commit is contained in:
makefu 2023-01-23 00:41:26 +01:00
parent ce46f7be6a
commit d6b4f2df7d
5 changed files with 12 additions and 12 deletions

View file

@ -2,11 +2,11 @@
{ config, ... }: { config, ... }:
{ {
nix = { nix.settings = {
binaryCaches = [ substituters = [
"https://cache.euer.krebsco.de/" "https://cache.euer.krebsco.de/"
]; ];
binaryCachePublicKeys = [ trusted-public-keys = [
"gum:iIXIFlCAotib+MgI3V/i3HMlFXiVYOT/jfP0y54Zuvg=" "gum:iIXIFlCAotib+MgI3V/i3HMlFXiVYOT/jfP0y54Zuvg="
]; ];
}; };

View file

@ -1,11 +1,11 @@
{ config, ... }: { config, ... }:
{ {
nix = { nix.settings = {
binaryCaches = [ substituters = [
"https://cache.krebsco.de" "https://cache.krebsco.de"
]; ];
binaryCachePublicKeys = [ trusted-public-keys = [
"cache.prism-1:+S+6Lo/n27XEtvdlQKuJIcb1yO5NUqUCE2lolmTgNJU=" "cache.prism-1:+S+6Lo/n27XEtvdlQKuJIcb1yO5NUqUCE2lolmTgNJU="
"cache.prism-2:YwmCm3/s/D+SxrPKN/ETjlpw/219pNUbpnluatp6FKI=" "cache.prism-2:YwmCm3/s/D+SxrPKN/ETjlpw/219pNUbpnluatp6FKI="
]; ];

View file

@ -1,11 +1,11 @@
{ config, ... }: { config, ... }:
{ {
nix = { nix.settings = {
binaryCaches = [ substituters = [
"https://cache.nixos.org/" "https://cache.nixos.org/"
]; ];
binaryCachePublicKeys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
]; ];
}; };

View file

@ -30,7 +30,7 @@ with import <stockholm/lib>;
openssh.authorizedKeys.keys = [ config.krebs.users.makefu.pubkey ]; openssh.authorizedKeys.keys = [ config.krebs.users.makefu.pubkey ];
}; };
}; };
nix.trustedUsers = [ config.krebs.build.user.name ]; nix.settings.trusted-users = [ config.krebs.build.user.name ];
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages; boot.kernelPackages = lib.mkDefault pkgs.linuxPackages;

View file

@ -8,13 +8,13 @@
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
networking.hostName = lib.mkIf (lib.hasAttr "host" config.krebs.build) config.krebs.build.host.name; networking.hostName = lib.mkIf (lib.hasAttr "host" config.krebs.build) config.krebs.build.host.name;
nix.buildCores = 0; # until https://github.com/NixOS/nixpkgs/pull/50440 is in stable
# we use gpg if necessary (or nothing at all) # we use gpg if necessary (or nothing at all)
programs.ssh.startAgent = false; programs.ssh.startAgent = false;
# all boxes look the same # all boxes look the same
nix.useSandbox = true; nix.settings.sandbox = true;
nix.settings.cores = 0; # until https://github.com/NixOS/nixpkgs/pull/50440 is in stable
# we configure users via nix # we configure users via nix
users.mutableUsers = false; users.mutableUsers = false;