1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-31 20:17:45 +00:00

feat: add best host

This commit is contained in:
RGBCube 2025-02-25 00:44:54 +03:00
parent 4f84f97dca
commit f959f7a532
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
7 changed files with 118 additions and 1 deletions

66
hosts/best/default.nix Normal file
View file

@ -0,0 +1,66 @@
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.thePassword.file = ./password.the.age;
users.users = {
root.hashedPasswordFile = config.secrets.thePassword.path;
the = {
description = "The";
openssh.authorizedKeys.keys = keys.admins;
hashedPasswordFile = config.secrets.thePassword.path;
isNormalUser = true;
extraGroups = [ "wheel" ];
};
backup = {
description = "Backup";
openssh.authorizedKeys.keys = keys.all;
hashedPasswordFile = config.secrets.thePassword.path;
isNormalUser = true;
};
};
home-manager.users = {
root = {};
the = {};
backup = {};
};
networking = let
interface = "ens3";
in {
hostName = "best";
ipv4.address = "152.53.236.46";
ipv6.address = "2a0a:4cc0:c0:6c66::";
domain = "rgbcu.be";
defaultGateway = {
inherit interface;
address = "152.53.236.1";
};
defaultGateway6 = {
inherit interface;
address = "fe80::1";
};
};
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "25.05";
home-manager.sharedModules = [{
home.stateVersion = "25.05";
}];
})