nix/module/sway/Init.nix

34 lines
740 B
Nix
Raw Normal View History

2024-04-06 03:03:58 +03:00
{ pkgs, wallpaper, style, util, ... } @args: let
mkConfig = { modules }: builtins.foldl' (acc: mod:
acc + (import mod args).text
) "" modules;
swayRc = mkConfig {
modules = [
./module/Style.nix
./module/Display.nix
./module/Input.nix
./module/Leader.nix
./module/Font.nix
./module/Launcher.nix
./module/Terminal.nix
./module/TitleBar.nix
./module/Brightness.nix
./module/Navigation.nix
./module/Notification.nix
./module/Resize.nix
./module/ScratchPad.nix
./module/Screenshot.nix
./module/Sound.nix
./module/Tiling.nix
./module/Workspace.nix
];
};
in {
config = util.trimTabs (''
# Read `man 5 sway` for a complete reference.
include /etc/sway/config.d/*
'' + swayRc);
}