diff options
| author | Skullheadx <andrew.montgomery@warpengine.ai> | 2026-06-29 14:38:08 -0400 |
|---|---|---|
| committer | Skullheadx <andrew.montgomery@warpengine.ai> | 2026-06-29 14:38:08 -0400 |
| commit | a00086f63df186181c254a164c77b974cc7a5c7c (patch) | |
| tree | f7d6ac98ab49166250a1635059ae032b3719a5be /x11.nix | |
| parent | remove work legacy, move more pkgs to common for darwin (diff) | |
| download | nixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.gz nixos-a00086f63df186181c254a164c77b974cc7a5c7c.tar.bz2 nixos-a00086f63df186181c254a164c77b974cc7a5c7c.zip | |
DRY for username
Diffstat (limited to 'x11.nix')
| -rw-r--r-- | x11.nix | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,7 @@ { config, pkgs, + username, ... }: { services.displayManager.ly = { @@ -31,7 +32,7 @@ sessionCommands = '' #!/bin/sh ${pkgs.xrandr}/bin/xrandr --output DP-3 --primary --mode 2560x1440 --rate 180 --pos 0x0 --output DP-2 --mode 1920x1080 --rate 160 --pos 2560x360 - ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/andrew/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg' + ${pkgs.feh}/bin/feh --no-fehbg --bg-fill '/home/${username}/Wallpapers/Daniel_in_the_Lions_Den_by_Briton_Riviere.jpg' ''; }; xkb = { @@ -53,7 +54,7 @@ enable = true; }; - hjem.users.andrew = { + hjem.users.${username} = { files = { ".config/sxhkd/sxhkdrc".text = builtins.readFile ( pkgs.replaceVars ./dotfiles/sxhkd/sxhkdrc { @@ -101,7 +102,7 @@ environment = { SFEED_PLUMBER = "surf"; - SFEED_URL_FILE = "/home/andrew/.local/share/sfeed/sfeed_read_url_file"; + SFEED_URL_FILE = "/home/${username}/.local/share/sfeed/sfeed_read_url_file"; }; serviceConfig = { |
