diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-10-24 22:52:35 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-10-24 22:59:09 -0700 |
| commit | 48c8a4145c5a73874797a6de3f05ce584b1d1798 (patch) | |
| tree | bd4c627e8c8944fb7082b7a9982e8d3677c2a2c4 /modules/users.nix | |
| parent | 1a181be93f37a94b347b2f5f97a1fef57e11cf89 (diff) | |
| parent | 27db59cac4f3c3e7a1e4187a5f56d4ec61895c5a (diff) | |
| download | depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.gz depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.bz2 depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.zip | |
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 |
