feat: add new host and start modularizing system configuration
This commit is contained in:
parent
ebe58addaa
commit
4a8c953223
22 changed files with 1050 additions and 288 deletions
17
users/breakglass/default.nix
Normal file
17
users/breakglass/default.nix
Normal 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.";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue