Evie Litherland-Smith
6bc0cbdc4f
Move sway to desktop/sway and move other packages under programs/sway up a level to programs/desktop, add niri config to desktop/niri and refactor common desktop imports into desktop/default.nix that also imports (for now at least) sway and niri modules Move wallpapers into programs/desktop since that's where they're needed anyway Add helper script to call swaybg with arguments
36 lines
956 B
Nix
36 lines
956 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./sway/default.nix
|
|
./niri/default.nix
|
|
./foot/default.nix
|
|
./alacritty/default.nix
|
|
./avizo/default.nix
|
|
./fuzzel/default.nix
|
|
./swaylock/default.nix
|
|
./swayidle/default.nix
|
|
./swaync/default.nix
|
|
./waybar/default.nix
|
|
./wlogout/default.nix
|
|
];
|
|
home.packages = with pkgs; [
|
|
swaybg
|
|
(writeShellScriptBin "set-background" "${swaybg}/bin/swaybg -m fill -i ${./wallpapers/default.jpg}")
|
|
(writeShellScriptBin "protonmail-setup-bridge" ''
|
|
pkill -9 -f protonmail-bridge
|
|
${protonmail-bridge}/bin/protonmail-bridge -c
|
|
swaymsg exec "${protonmail-bridge}/bin/protonmail-bridge -n"
|
|
'')
|
|
(writeShellScriptBin "davmail-setup" ''
|
|
systemctl --user restart davmail # Ensure config file is present
|
|
systemctl --user stop davmail
|
|
${davmail}/bin/davmail -n ~/.davmail.properties
|
|
systemctl --user restart davmail
|
|
'')
|
|
];
|
|
}
|