nixfiles/config/hosts/seras/configuration.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-03 10:38:55 +02:00
{ config, inputs, lib, pkgs, ... }: {
imports = [
../../common
../../profiles/headless.nix
../../profiles/kartoffel.nix
../../profiles/lxc.nix
];
boot.binfmt.emulatedSystems = ["aarch64-linux"];
2024-04-22 14:14:30 +02:00
deployment.targetUser = lib.mkForce "emily";
2024-04-03 10:38:55 +02:00
networking = {
hostName = "seras";
nftables.enable = lib.mkForce false;
};
2024-04-05 16:25:59 +02:00
nix.gc.options = lib.mkForce "--delete-older-than 60d";
nix.settings.trusted-users = [ "build" ];
nix.extraOptions = ''
min-free = ${builtins.toString (4096 * 1024 * 1024)}
max-free = ${builtins.toString (8192 * 1024 * 1024)}
max-substitution-jobs = 20
max-silent-time = 900
'';
2024-04-03 10:38:55 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
systemd.network.networks."98-eth-default" = {
address = [
"2a0f:be01:0:100::169/128"
];
};
2024-04-05 16:25:59 +02:00
users.users.build = {
2024-04-03 10:38:55 +02:00
isNormalUser = true;
shell = pkgs.fish;
ignoreShellProgramCheck = true;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICT0dGyLUjxFnvqUmex+5xUGQ7D4yGHKo267JgApcq0k root@ryuuko"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDTwCSWYODyvTJxwB6Rahuy0j6s/YYwtQta8bjzG/We root@ryuuko-arch"
];
};
}