diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-10-03 19:56:13 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-10-03 20:54:54 -0700 |
| commit | 16918d62b34b7e4d7817837057b88acb44e4f63c (patch) | |
| tree | 60138c234e8fe2c21946938169d0704edb300f16 /modules/users.nix | |
| parent | 7b5670b47ad1433202b19db7c96ae9ac69d92fbb (diff) | |
| download | depot-16918d62b34b7e4d7817837057b88acb44e4f63c.tar.gz depot-16918d62b34b7e4d7817837057b88acb44e4f63c.tar.bz2 depot-16918d62b34b7e4d7817837057b88acb44e4f63c.zip | |
enable flake-less machine builds
Diffstat (limited to 'modules/users.nix')
| -rw-r--r-- | modules/users.nix | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/modules/users.nix b/modules/users.nix index e21c085..d3e7cb4 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -1,7 +1,17 @@ -{ pkgs, ... }: +{ + config, + pkgs, + lib, + ... +}: let + cfg = config.depot.users; + inherit (builtins) - attrValues; + attrValues + ; + + inherit (lib) mkIf mkEnableOption; keys = { t480 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEOw8YEbHsKy38JHp9W1wcxxZgWCDgnabOXccZUN5ddd"; @@ -9,13 +19,23 @@ let }; in { - kle = { + options.depot.users.kle.enable = mkEnableOption "kle user"; + + config.users.users.kle = mkIf cfg.kle.enable { initialHashedPassword = "$6$R4dDhaftX.vapGMd$.An36hlp3DXfkIC7bPZ0MDPo6Zvpk8JRrhy2LES.lZZj6JDa74oJkcMW3DCsIySvLJxOPXSShos0TpgJ/w0fH/"; isNormalUser = true; shell = pkgs.fish; home = "/persist/usr/kle"; createHome = true; - extraGroups = [ "wheel" "users" "networkmanager" "video" "kvm" "i2c" "dialout" ]; + extraGroups = [ + "wheel" + "users" + "networkmanager" + "video" + "kvm" + "i2c" + "dialout" + ]; packages = with pkgs; [ btop curl @@ -29,6 +49,7 @@ in rsync sshfs tree + watchman zip # passwords |
