1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00
ncc/hosts/disk/default.nix
2025-07-22 03:02:09 +03:00

61 lines
1.3 KiB
Nix

lib: lib.nixosSystem' ({ config, keys, lib, ... }: let
inherit (lib) collectNix remove;
in {
imports = collectNix ./.
|> remove ./default.nix;
secrets.id.file = ./id.age;
services.openssh.hostKeys = [{
type = "ed25519";
path = config.secrets.id.path;
}];
secrets.password.file = ./password.age;
users.users = {
root = {
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.password.path;
};
floppy = {
description = "Floppy";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.password.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
};
home-manager.users = {
root = {};
floppy = {};
};
networking = let
interface = "ens32";
in {
hostName = "disk";
ipv4.address = "23.164.232.40";
ipv6.address = "2602:f9f7::40";
domain = "rgbcu.be";
defaultGateway = {
inherit interface;
address = "23.164.232.1";
};
defaultGateway6 = {
inherit interface;
address = "2602:f9f7::1";
};
};
system.stateVersion = "23.11";
home-manager.sharedModules = [{
home.stateVersion = "23.11";
}];
})