2024-02-05 06:25:43 -05:00
|
|
|
{
|
|
|
|
config,
|
2024-02-27 17:23:48 -05:00
|
|
|
lib,
|
2024-02-05 06:25:43 -05:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-03-03 17:34:21 -05:00
|
|
|
inherit (lib) makeLibraryPath optionalString;
|
2024-02-05 06:25:43 -05:00
|
|
|
inherit (config.vars) mainUser;
|
2024-03-26 13:55:55 -04:00
|
|
|
flakeDir = config.environment.variables.FLAKE;
|
2024-02-05 06:25:43 -05:00
|
|
|
in {
|
|
|
|
imports = [../dolphin.nix];
|
|
|
|
|
2024-02-05 09:56:42 -05:00
|
|
|
programs.kdeconnect.enable = true;
|
2024-02-05 06:25:43 -05:00
|
|
|
|
|
|
|
home-manager.users.${mainUser} = {
|
|
|
|
imports = [
|
|
|
|
../../home/foot.nix
|
|
|
|
../../home/mpv
|
|
|
|
../../home/obs.nix
|
|
|
|
../../home/wofi
|
2024-03-18 10:34:28 -04:00
|
|
|
|
|
|
|
({config, ...}: let
|
|
|
|
symlink = config.lib.file.mkOutOfStoreSymlink;
|
2024-03-26 13:55:55 -04:00
|
|
|
configDir = "${flakeDir}/modules/hyprland/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";
|
|
|
|
"swappy".source = symlink "${configDir}/swappy";
|
|
|
|
};
|
|
|
|
})
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# School
|
|
|
|
xournalpp
|
|
|
|
virt-manager
|
|
|
|
libreoffice-fresh # TODO: declarative conf?
|
|
|
|
hunspell
|
|
|
|
hunspellDicts.en_CA
|
|
|
|
config.customPkgs.rars-flatlaf
|
|
|
|
|
|
|
|
# Apps
|
|
|
|
thunderbird # TODO: use programs.thunderbird
|
2024-02-12 16:09:06 -05:00
|
|
|
protonmail-bridge
|
2024-02-05 06:25:43 -05:00
|
|
|
spotifywm
|
|
|
|
photoqt
|
|
|
|
nextcloud-client
|
|
|
|
jellyfin-media-player
|
|
|
|
prismlauncher-qt5
|
|
|
|
|
|
|
|
# tools
|
|
|
|
wl-color-picker
|
|
|
|
wl-clipboard
|
|
|
|
cliphist
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
swappy
|
2024-02-26 20:14:58 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
Discord themes for Vencord
|
|
|
|
https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css
|
|
|
|
https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css
|
|
|
|
*/
|
|
|
|
(symlinkJoin {
|
|
|
|
name = "discord";
|
|
|
|
paths = [
|
|
|
|
(discord.override {
|
|
|
|
withOpenASAR = true;
|
|
|
|
withVencord = true;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
buildInputs = [makeWrapper];
|
|
|
|
postBuild = ''
|
2024-03-03 17:34:21 -05:00
|
|
|
wrapProgram $out/bin/Discord ${optionalString config.nvidia.enable
|
|
|
|
''--prefix LD_LIBRARY_PATH : "${makeLibraryPath [
|
2024-02-27 17:23:48 -05:00
|
|
|
addOpenGLRunpath.driverLink
|
|
|
|
libglvnd
|
|
|
|
]}"''} \
|
2024-03-18 10:38:50 -04:00
|
|
|
--add-flags "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"
|
2024-02-26 20:14:58 -05:00
|
|
|
'';
|
|
|
|
})
|
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-02-12 16:09:06 -05:00
|
|
|
"sleep 3; protonmail-bridge --noninteractive --log-level info"
|
2024-02-05 09:56:42 -05:00
|
|
|
|
|
|
|
"[workspace special:thunder silent] thunderbird"
|
|
|
|
"[workspace special:spot silent] spotify"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
windowrule = [
|
|
|
|
"noborder,^(wofi)$"
|
2024-02-05 09:56:42 -05:00
|
|
|
"tile,^(libreoffice)$"
|
|
|
|
"float,^(org.gnome.Calculator)$"
|
|
|
|
|
|
|
|
"float,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
"move cursor -15 -10,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
"size 400 581,^(com.nextcloud.desktopclient.nextcloud)$"
|
|
|
|
|
|
|
|
"workspace special:thunder silent,^(thunderbird)$"
|
|
|
|
"workspace special:spot silent,^(Spotify)$"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
bind = [
|
|
|
|
"$mainMod, Q, exec, foot"
|
|
|
|
|
|
|
|
# Clipboard History
|
|
|
|
"$mainMod, V, exec, killall -r wofi || cliphist list | wofi --dmenu | cliphist decode | wl-copy"
|
|
|
|
|
|
|
|
",Print, exec, grim -g \"$(slurp)\" - | swappy -f -"
|
|
|
|
"$mainMod SHIFT, C, exec, wl-color-picker"
|
2024-02-05 09:56:42 -05:00
|
|
|
|
|
|
|
"$mainMod, T, togglespecialworkspace, thunder"
|
|
|
|
"$mainMod, S, togglespecialworkspace, spot"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|