nixos/home/desktop/sway.nix

46 lines
885 B
Nix
Raw Normal View History

2023-06-04 11:33:21 +01:00
{
pkgs,
lib,
config,
...
}: let
modifier = config.wayland.windowManager.sway.config.modifier;
in {
imports = [
# ./swaylock.nix
# ./eww.nix
./waybar.nix
./gtk.nix
./dunst.nix
./rofi.nix
];
home.packages = with pkgs; [
pipewire
wireplumber
wl-clipboard
swayimg
hyprpaper
brightnessctl
];
programs.rofi.package = pkgs.rofi-wayland;
wayland.windowManager.sway = {
enable = true;
config = {
fonts = {
names = ["FiraCode Nerd Font" "FiraCode Nerd Font Mono"];
size = 12.0;
};
gaps = {
inner = 5;
outer = 20;
};
2023-06-04 09:46:07 +01:00
bars = [];
2023-06-04 11:33:21 +01:00
keybindings = lib.mkOptionDefault {
"${modifier}+Return" = "exec ${pkgs.foot}/bin/foot";
"${modifier}+Shift+q" = "kill";
"${modifier}+w" = "exec ${pkgs.firefox}/bin/firefox";
};
};
};
2023-05-16 09:11:39 +01:00
}