summaryrefslogtreecommitdiff
path: root/modules/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/users.nix')
-rw-r--r--modules/users.nix29
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