nixfiles/config/profiles/builder.nix

26 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-29 15:22:48 +02:00
{ lib, pkgs, ... }: {
kyouma.deployment.auto-upgrade.cache = "daemon";
2024-04-29 15:22:48 +02:00
nix.gc.options = lib.mkForce "--delete-older-than 60d";
2024-07-22 00:01:49 +02:00
nix.settings = {
trusted-users = [ "build" ];
2024-07-22 14:54:47 +02:00
#system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" ] ++ lib.optionals pkgs.hostPlatform.isx86_64 [ "gccarch-x86-64-v3" ];
2024-07-22 00:01:49 +02:00
};
2024-04-29 15:22:48 +02:00
nix.extraOptions = ''
min-free = ${builtins.toString (4096 * 1024 * 1024)}
max-free = ${builtins.toString (8192 * 1024 * 1024)}
max-substitution-jobs = 20
2024-06-12 15:00:55 +02:00
max-silent-time = 7200
2024-04-29 15:22:48 +02:00
'';
users.users.build = {
isNormalUser = true;
shell = pkgs.bash;
ignoreShellProgramCheck = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
2024-05-10 14:49:52 +02:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE/vCXM3IaxJP9v2Y+xcQrQD2IcffgdzqtWhpMjj9Xl5 hydra@seras"
2024-04-29 15:22:48 +02:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICT0dGyLUjxFnvqUmex+5xUGQ7D4yGHKo267JgApcq0k root@ryuuko"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDTwCSWYODyvTJxwB6Rahuy0j6s/YYwtQta8bjzG/We root@ryuuko-arch"
];
};
}