summaryrefslogtreecommitdiffstats
path: root/hjem-linux.nix
diff options
context:
space:
mode:
authorSkullheadx <andrew.montgomery@warpengine.ai>2026-06-29 14:38:08 -0400
committerSkullheadx <andrew.montgomery@warpengine.ai>2026-06-29 14:38:08 -0400
commita00086f63df186181c254a164c77b974cc7a5c7c (patch)
treef7d6ac98ab49166250a1635059ae032b3719a5be /hjem-linux.nix
parentremove work legacy, move more pkgs to common for darwin (diff)
downloadnixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.gz
nixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.bz2
nixos-a00086f63df186181c254a164c77b974cc7a5c7c.zip
DRY for username
Diffstat (limited to '')
-rw-r--r--hjem-linux.nix (renamed from hjem.nix)7
1 files changed, 4 insertions, 3 deletions
diff --git a/hjem.nix b/hjem-linux.nix
index 1724568..df49b12 100644
--- a/hjem.nix
+++ b/hjem-linux.nix
@@ -1,13 +1,14 @@
{
config,
pkgs,
+ username,
...
}: {
imports = [
];
# Define a user account. Don't forget to set a password with ‘passwd’.
- users.users.andrew = {
+ users.users.${username} = {
isNormalUser = true;
extraGroups = [
@@ -17,8 +18,8 @@
packages = with pkgs; [];
};
- hjem.users.andrew = {
- directory = "/home/andrew";
+ hjem.users.${username} = {
+ directory = "/home/${username}";
files = {
".config/surf/styles/default.css".source = ./dotfiles/surf/styles/default.css;
".config/surf/script.js".source = ./dotfiles/surf/script.js;