1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-09-13 09:37:57 +00:00

chore: migrate nine host

This commit is contained in:
RGBCube 2025-02-22 17:38:46 +03:00
parent f67d2760f7
commit bf396257de
34 changed files with 400 additions and 177 deletions

View file

@ -1,18 +1,11 @@
lib: lib.nixosSystem ({ config, keys, lib, ... }: let
inherit (lib) collect remove;
inherit (lib) collectNix remove;
in {
imports = collect ./. |> remove ./default.nix;
nixpkgs.hostPlatform = "aarch64-linux";
system.stateVersion = "23.11";
home-manager.sharedModules = [{
home.stateVersion = "23.11";
}];
imports = collectNix ./. |> remove ./default.nix;
networking.hostName = "nine";
secrets.id.file = ./id.age;
secrets.id.file = ./id.age;
services.openssh.hostKeys = [{
type = "ed25519";
path = config.secrets.id.path;
@ -26,6 +19,7 @@ in {
description = "Hungry Seven";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.sevenPassword.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
@ -33,9 +27,16 @@ in {
description = "Backup";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.sevenPassword.path;
isNormalUser = true;
};
};
home-manager.users = {
root = {};
seven = {};
backup = {};
};
networking = {
ipv4 = "152.53.2.105";
ipv6 = "2a0a:4cc0::12d9";
@ -57,4 +58,10 @@ in {
}];
};
};
nixpkgs.hostPlatform = "aarch64-linux";
system.stateVersion = "23.11";
home-manager.sharedModules = [{
home.stateVersion = "23.11";
}];
})