nix/home/file/sway/default.nix

42 lines
852 B
Nix
Raw Normal View History

{
config,
lib,
2024-12-18 12:08:17 +03:00
pkgs,
util,
...
2024-12-18 12:08:17 +03:00
}:
let
2024-12-18 12:08:17 +03:00
swayRcRaw = pkgs.writeText "sway-rc-raw" (util.readFiles [
./module/Mod.conf
./module/Style.conf
./module/Display.conf
./module/Input.conf
./module/Font.conf
./module/Launcher.conf
./module/Terminal.conf
./module/TitleBar.conf
./module/Navigation.conf
./module/Notification.conf
./module/Resize.conf
./module/ScratchPad.conf
./module/Screenshot.conf
./module/Sound.conf
./module/Tiling.conf
./module/Workspace.conf
./module/Session.conf
./module/Keyd.conf
./module/Waybar.conf
./module/System.conf
./module/Mouse.conf
]);
in
{
text =
''
# Read `man 5 sway` for a complete reference.
include /etc/sway/config.d/*
''
+ swayRc
+ lib.concatStringsSep "\n" config.module.sway.extraConfig;
2024-04-06 03:03:58 +03:00
}