2024-02-05 06:25:43 -05:00
|
|
|
{
|
|
|
|
config,
|
2024-06-08 01:43:43 -04:00
|
|
|
jellyfin-flake,
|
2024-02-27 17:23:48 -05:00
|
|
|
lib,
|
2024-02-05 06:25:43 -05:00
|
|
|
pkgs,
|
2024-06-08 23:40:44 -04:00
|
|
|
self,
|
2024-06-27 00:56:27 -04:00
|
|
|
Vencord-src,
|
2024-02-05 06:25:43 -05:00
|
|
|
...
|
|
|
|
}: let
|
2024-03-03 17:34:21 -05:00
|
|
|
inherit (lib) makeLibraryPath optionalString;
|
2024-05-01 10:21:28 -04:00
|
|
|
inherit (pkgs.writers) writeTOML;
|
2024-05-05 22:43:03 -04:00
|
|
|
|
2024-03-26 13:55:55 -04:00
|
|
|
flakeDir = config.environment.variables.FLAKE;
|
2024-06-27 00:56:27 -04:00
|
|
|
cfg = config.roles.desktop;
|
2024-02-05 06:25:43 -05:00
|
|
|
in {
|
2024-06-27 00:56:27 -04:00
|
|
|
imports = [./dolphin.nix];
|
2024-02-05 06:25:43 -05:00
|
|
|
|
2024-02-05 09:56:42 -05:00
|
|
|
programs.kdeconnect.enable = true;
|
2024-02-05 06:25:43 -05:00
|
|
|
|
2024-06-27 00:56:27 -04:00
|
|
|
home-manager.users.${cfg.user} = {
|
2024-02-05 06:25:43 -05:00
|
|
|
imports = [
|
2024-06-27 00:56:27 -04:00
|
|
|
./home/foot.nix
|
|
|
|
./home/mpv.nix
|
|
|
|
./home/obs.nix
|
2024-03-18 10:34:28 -04:00
|
|
|
|
|
|
|
({config, ...}: let
|
|
|
|
symlink = config.lib.file.mkOutOfStoreSymlink;
|
2024-06-27 00:56:27 -04:00
|
|
|
configDir = "${flakeDir}/modules/desktop/desktop-environment/config";
|
2024-03-18 10:34:28 -04:00
|
|
|
in {
|
|
|
|
xdg.configFile = {
|
|
|
|
"dolphinrc".source = symlink "${configDir}/dolphinrc";
|
|
|
|
"kdeglobals".source = symlink "${configDir}/kdeglobals";
|
|
|
|
"kiorc".source = symlink "${configDir}/kiorc";
|
|
|
|
"mimeapps.list".source = symlink "${configDir}/mimeapps.list";
|
|
|
|
"neofetch".source = symlink "${configDir}/neofetch";
|
2024-05-01 10:21:28 -04:00
|
|
|
|
|
|
|
"satty/config.toml".source = writeTOML "satty.toml" {
|
|
|
|
general = {
|
|
|
|
early-exit = true;
|
|
|
|
copy-command = "wl-copy";
|
|
|
|
initial-tool = "crop";
|
|
|
|
output-filename = "${config.home.homeDirectory}/Pictures/Screenshots/screen-%d-%m-%Y_%H:%M:%S.png";
|
|
|
|
};
|
|
|
|
|
|
|
|
font = {
|
|
|
|
family = "Ubuntu Mono";
|
|
|
|
};
|
|
|
|
};
|
2024-03-18 10:34:28 -04:00
|
|
|
};
|
|
|
|
})
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
2024-06-08 21:30:44 -04:00
|
|
|
programs.sioyek = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-06-08 23:40:44 -04:00
|
|
|
config = {
|
2024-06-08 21:30:44 -04:00
|
|
|
startup_commands = "toggle_custom_color";
|
|
|
|
ui_font = "JetBrainsMono Nerd Font Mono Regular";
|
|
|
|
font_size = "24";
|
2024-06-10 22:57:20 -04:00
|
|
|
source = toString self.legacyPackages.${pkgs.system}.dracula.sioyek;
|
2024-06-08 21:30:44 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-05 22:43:03 -04:00
|
|
|
home.packages =
|
|
|
|
(with pkgs; [
|
|
|
|
# School
|
|
|
|
xournalpp
|
|
|
|
virt-manager
|
|
|
|
libreoffice-fresh # TODO: declarative conf?
|
|
|
|
hunspell
|
|
|
|
hunspellDicts.en_CA
|
|
|
|
|
|
|
|
# Apps
|
2024-06-23 14:26:53 -04:00
|
|
|
protonmail-desktop
|
2024-05-05 22:43:03 -04:00
|
|
|
spotifywm
|
|
|
|
photoqt
|
|
|
|
nextcloud-client
|
|
|
|
prismlauncher
|
|
|
|
|
|
|
|
# tools
|
|
|
|
wl-color-picker
|
|
|
|
wl-clipboard
|
|
|
|
cliphist
|
|
|
|
grim-hyprland
|
|
|
|
slurp
|
|
|
|
satty
|
|
|
|
])
|
|
|
|
++ [
|
2024-06-08 01:43:43 -04:00
|
|
|
jellyfin-flake.packages.${pkgs.system}.jellyfin-media-player
|
|
|
|
|
2024-05-05 22:43:03 -04:00
|
|
|
/*
|
|
|
|
Discord themes for Vencord
|
|
|
|
https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css
|
|
|
|
https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css
|
|
|
|
*/
|
|
|
|
(pkgs.symlinkJoin {
|
|
|
|
name = "discord";
|
|
|
|
paths = [
|
|
|
|
(pkgs.discord.override {
|
|
|
|
withOpenASAR = true;
|
|
|
|
withVencord = true;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
buildInputs = [pkgs.makeWrapper];
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/Discord ${optionalString config.nvidia.enable
|
|
|
|
''--prefix LD_LIBRARY_PATH : "${makeLibraryPath [
|
|
|
|
pkgs.addOpenGLRunpath.driverLink
|
|
|
|
pkgs.libglvnd
|
|
|
|
]}"''} \
|
|
|
|
--add-flags "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
2024-02-05 06:25:43 -05:00
|
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
settings = {
|
|
|
|
exec-once = [
|
|
|
|
"${config.programs.kdeconnect.package}/libexec/kdeconnectd"
|
|
|
|
"kdeconnect-indicator"
|
|
|
|
|
|
|
|
"wl-paste --watch cliphist store"
|
2024-02-05 09:56:42 -05:00
|
|
|
|
|
|
|
"sleep 3; nextcloud --background"
|
|
|
|
|
2024-06-23 14:26:53 -04:00
|
|
|
"[workspace special:protonmail silent] proton-mail"
|
2024-02-05 09:56:42 -05:00
|
|
|
"[workspace special:spot silent] spotify"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
windowrule = [
|
2024-02-05 09:56:42 -05:00
|
|
|
"tile,^(libreoffice)$"
|
|
|
|
"float,^(org.gnome.Calculator)$"
|
2024-05-01 10:21:28 -04:00
|
|
|
"float,^(com.gabm.satty)$"
|
|
|
|
"size 1000 700,^(com.gabm.satty)$"
|
2024-02-05 09:56:42 -05:00
|
|
|
|
|
|
|
"float,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
"move cursor -15 -10,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
"size 400 581,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
|
2024-06-23 14:26:53 -04:00
|
|
|
"workspace special:protonmail silent,^(Proton Mail)$"
|
2024-02-05 09:56:42 -05:00
|
|
|
"workspace special:spot silent,^(Spotify)$"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
bind = [
|
|
|
|
"$mainMod, Q, exec, foot"
|
|
|
|
|
|
|
|
"$mainMod SHIFT, C, exec, wl-color-picker"
|
2024-02-05 09:56:42 -05:00
|
|
|
|
2024-06-23 14:26:53 -04:00
|
|
|
"$mainMod, P, togglespecialworkspace, protonmail"
|
2024-02-05 09:56:42 -05:00
|
|
|
"$mainMod, S, togglespecialworkspace, spot"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|