about summary refs log tree commit diff
path: root/modules/nixos
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-04-09 10:04:57 +0300
committerAzat Bahawi <azat@bahawi.net>2024-04-09 10:04:57 +0300
commit493fb0d2d7acbfee929d0525ae95a1f36cdf43a9 (patch)
tree0dc184ad983e13403d4a1c6643512bb4f49bffda /modules/nixos
parent2024-04-01 (diff)
2024-04-09
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/common/users.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/nixos/common/users.nix b/modules/nixos/common/users.nix
index eca9e1b..a92a38e 100644
--- a/modules/nixos/common/users.nix
+++ b/modules/nixos/common/users.nix
@@ -1,7 +1,11 @@
-{ lib, ... }:
+{
+  lib,
+  localUsername ? lib.my.username,
+  ...
+}:
 with lib;
 let
-  home = "/home/${my.username}";
+  home = "/home/${localUsername}";
 in
 {
   ark.directories = [ home ];
@@ -12,7 +16,7 @@ in
     users = {
       root.hashedPassword = "@HASHED_PASSWORD@";
 
-      ${my.username} = {
+      ${localUsername} = {
         isNormalUser = true;
         uid = 1000;
         description = my.fullname;

Consider giving Nix/NixOS a try! <3