ma 2configs: use nix.settings

This commit is contained in:
makefu 2023-01-23 00:41:26 +01:00
parent cb7ebd1c91
commit dbc3870841
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
5 changed files with 12 additions and 12 deletions

View File

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

View File

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

View File

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

View File

@ -30,7 +30,7 @@ with import <stockholm/lib>;
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;

View File

@ -8,13 +8,13 @@
time.timeZone = "Europe/Berlin";
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)
programs.ssh.startAgent = false;
# 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
users.mutableUsers = false;