NixOS-Config/home/sway/default.nix

39 lines
960 B
Nix
Raw Normal View History

{ config, pkgs, outputs, ... }: {
2024-08-24 22:16:51 -04:00
imports = [
./hardware
./theme
./hotkeys
./rules
./autostart
./waybar
./swayshot
./swaylock
./swayfx
2024-08-24 22:16:51 -04:00
];
# Enable Sway and write some scripts
wayland.windowManager.sway = {
enable = true;
2024-09-03 18:47:16 -04:00
package = null;
2024-08-24 22:16:51 -04:00
wrapperFeatures.gtk = true;
checkConfig = false;
2024-09-23 16:22:01 -04:00
extraConfig = ''
2024-08-24 22:16:51 -04:00
# Options I can't find in Nix yet
2024-09-23 16:22:01 -04:00
default_floating_border pixel ${outputs.look.border.string}
2024-08-24 22:16:51 -04:00
hide_edge_borders --i3 smart
titlebar_padding 10 1
primary_selection disabled
# Include extra window icons
include ${pkgs.fetchurl {
url = "https://raw.githubusercontent.com/iguanajuice/sway-font-awesome/6b7a9d08974eea1b9cddb8d444e1c89d6837083a/icons";
sha256 = "09ki5qw1h91kd33k3fwzq7cb6ck8sq4haswgizrsy387sfr2a75x";
}}
# Switch to workspace 1
2024-09-23 16:22:01 -04:00
workspace ${outputs.ws.w7}
workspace ${outputs.ws.w1}
2024-08-24 22:16:51 -04:00
'';
};
}