diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-02-02 00:49:21 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-02-02 00:49:21 +0300 |
commit | 89399796d0b91e7904ce67de04bd2f60f0d93b5b (patch) | |
tree | 06d47b2ccc861fe8188cdb96910e651802ae06cc /modules/nixos/common/users.nix | |
parent | 2023-01-30 (diff) |
2023-02-02
Diffstat (limited to 'modules/nixos/common/users.nix')
-rw-r--r-- | modules/nixos/common/users.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/nixos/common/users.nix b/modules/nixos/common/users.nix index 400bf33..367af41 100644 --- a/modules/nixos/common/users.nix +++ b/modules/nixos/common/users.nix @@ -1,7 +1,8 @@ {lib, ...}: -with lib; { - # TODO Enable on a fresh system. - # ark.directories = [config.my.home]; +with lib; let + home = "/home/${my.username}"; +in { + ark.directories = [home]; users = { mutableUsers = false; @@ -13,6 +14,7 @@ with lib; { isNormalUser = true; uid = 1000; description = my.fullname; + inherit home; inherit (my) hashedPassword; openssh.authorizedKeys.keys = [my.ssh.key]; extraGroups = ["wheel"]; |