diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-04 17:06:23 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-04 17:06:23 +0200 |
commit | 924ec30e7075ea7a9dbac569a537d876f9146850 (patch) | |
tree | 11ff56048f05536a1905490137333b3596d0ee18 /hm/river/default.nix | |
parent | users/default.nix: delete (diff) | |
download | nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.tar.gz nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.zip |
refactor: move users/sils dir to hm
Diffstat (limited to 'hm/river/default.nix')
-rw-r--r-- | hm/river/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/hm/river/default.nix b/hm/river/default.nix new file mode 100644 index 0000000..07fc5ec --- /dev/null +++ b/hm/river/default.nix @@ -0,0 +1,49 @@ +{ + pkgs, + sysLib, + river_init_lesser, + nixosConfig, + system, + ... +}: let + inherit (nixosConfig.networking) hostName; + mappings = '' + err_fail riverctl keyboard-layout 'de' + err_fail river_init_lesser ~/.config/river/res/keys.ron + ''; + + screen_setup = '' + #err_fail wlr-randr --output Virtual-1 --mode 1920x1080 + ''; + init_scr = pkgs.substituteAll { + src = ./init; + inherit mappings screen_setup; + }; +in { + xdg.configFile."river/init".source = + sysLib.writeShellScriptWithLibraryAndKeepPath { + name = "river_init"; + script = init_scr; + dependencies = builtins.attrValues { + river_init_lesser = river_init_lesser.packages.${system}.default; + inherit + (pkgs) + dash + river + gammastep + wlr-randr + yambar + mako + swaybg + swayidle + swaylock + alacritty + ; + }; + } + + /bin/river_init; + + xdg.configFile."river/res".source = ./res; +} +# vim: ts=2 + |