2024-06-07 10:51:35 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-05-27 20:07:18 +01:00
|
|
|
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
|
2024-05-28 07:47:00 +01:00
|
|
|
./mako/default.nix
|
2024-05-27 20:07:18 +01:00
|
|
|
./waybar/default.nix
|
|
|
|
./wlogout/default.nix
|
|
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
2024-06-07 10:51:35 +01:00
|
|
|
pinentry
|
|
|
|
ffmpeg
|
|
|
|
evince
|
|
|
|
libreoffice-fresh
|
|
|
|
inkscape
|
|
|
|
webcord
|
|
|
|
swayimg
|
2024-05-27 20:07:18 +01:00
|
|
|
swaybg
|
2024-05-27 20:10:38 +01:00
|
|
|
(writeShellScriptBin "set-background" ''
|
2024-06-04 14:55:20 +01:00
|
|
|
${swaybg}/bin/swaybg -m fill -i ${./wallpapers/landscapes/tropic_island_day.jpg}
|
2024-05-27 20:10:38 +01:00
|
|
|
'')
|
2024-05-27 20:07:18 +01:00
|
|
|
(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
|
|
|
|
'')
|
|
|
|
];
|
2024-06-07 10:51:35 +01:00
|
|
|
services = {
|
|
|
|
avizo.enable = true;
|
|
|
|
gpg-agent.pinentryPackage = pkgs.pinentry-gtk2;
|
|
|
|
remmina.enable = true;
|
|
|
|
syncthing.enable = true;
|
2024-06-16 11:05:45 +01:00
|
|
|
kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
indicator = true;
|
|
|
|
};
|
2024-06-07 10:51:35 +01:00
|
|
|
udiskie = {
|
|
|
|
enable = true;
|
|
|
|
notify = true;
|
|
|
|
automount = true;
|
|
|
|
tray = "never";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.mpv.enable = true;
|
2024-06-09 15:38:51 +01:00
|
|
|
gtk = {
|
2024-06-07 10:51:35 +01:00
|
|
|
enable = true;
|
|
|
|
iconTheme = {
|
2024-06-08 07:17:19 +01:00
|
|
|
package = pkgs.papirus-icon-theme.override {color = "violet";};
|
2024-06-09 15:38:51 +01:00
|
|
|
name =
|
|
|
|
if config.scheme.variant == "light"
|
|
|
|
then "Papirus-Light"
|
|
|
|
else "Papirus-Dark";
|
2024-06-07 10:51:35 +01:00
|
|
|
};
|
|
|
|
cursorTheme = {
|
2024-06-08 07:17:19 +01:00
|
|
|
package = pkgs.volantes-cursors;
|
2024-06-09 15:38:51 +01:00
|
|
|
name =
|
|
|
|
if config.scheme.variant == "light"
|
|
|
|
then "volantes_cursors"
|
|
|
|
else "volantes_light_cursors";
|
2024-06-07 10:51:35 +01:00
|
|
|
size = 32;
|
|
|
|
};
|
2024-06-08 08:13:20 +01:00
|
|
|
theme = {
|
2024-06-09 15:58:10 +01:00
|
|
|
package = pkgs.gnome.gnome-themes-extra;
|
2024-06-09 15:38:51 +01:00
|
|
|
name =
|
|
|
|
if config.scheme.variant == "light"
|
2024-06-09 15:58:10 +01:00
|
|
|
then "Adwaita"
|
|
|
|
else "Adwaita-dark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
style = {
|
|
|
|
package = pkgs.adwaita-qt;
|
|
|
|
name =
|
|
|
|
if config.scheme.variant == "light"
|
|
|
|
then "adwaita"
|
|
|
|
else "adwaita-dark";
|
2024-06-07 10:51:35 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg = {
|
|
|
|
mime.enable = true;
|
|
|
|
mimeApps = let
|
|
|
|
defaultApplications = import ./mimeapps.nix;
|
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
inherit defaultApplications;
|
|
|
|
associations = {
|
|
|
|
added = defaultApplications;
|
|
|
|
removed = {
|
|
|
|
"x-scheme-handler/zoomus" = config.xdg.mimeApps.defaultApplications."x-scheme-handler/http";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
userDirs = {
|
|
|
|
enable = true;
|
|
|
|
createDirectories = true;
|
|
|
|
extraConfig = {
|
|
|
|
XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xresources.properties = with config.scheme.withHashtag; {
|
|
|
|
"*background" = base00;
|
|
|
|
"*foreground" = base05;
|
|
|
|
"*color0" = base00;
|
|
|
|
"*color1" = red;
|
|
|
|
"*color2" = green;
|
|
|
|
"*color3" = yellow;
|
|
|
|
"*color4" = blue;
|
|
|
|
"*color5" = magenta;
|
|
|
|
"*color6" = cyan;
|
|
|
|
"*color7" = base04;
|
|
|
|
"*color8" = base01;
|
|
|
|
"*color9" = red;
|
|
|
|
"*color10" = green;
|
|
|
|
"*color11" = yellow;
|
|
|
|
"*color12" = blue;
|
|
|
|
"*color13" = magenta;
|
|
|
|
"*color14" = cyan;
|
|
|
|
"*color15" = base05;
|
|
|
|
};
|
2024-05-27 20:07:18 +01:00
|
|
|
}
|