feat: add new host and start modularizing system configuration

This commit is contained in:
Jay Looney 2025-06-16 13:54:38 -05:00
parent ebe58addaa
commit 4a8c953223
22 changed files with 1050 additions and 288 deletions

View file

@ -0,0 +1,17 @@
{ pkgs, lib, ... }:
{
users.users.breakglass = {
home =
if pkgs.stdenv.isLinux then
lib.mkDefault "/home/breakglass"
else if pkgs.stdenv.isDarwin then
lib.mkDefault "/Users/breakglass"
else
abort "Unsupported OS";
} // lib.optionalAttrs pkgs.stdenv.isLinux {
isNormalUser = true;
extraGroups = [ "wheel" ];
# NOTE: Generated with `mkpasswd`
hashedPassword = "$y$j9T$U7phasQYqMhxY8WXoiHL51$IHHDTreR4uZrvAC1Xusjy2M0yXkU.vLy3z6zBjZCFX.";
};
}