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-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-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
|
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";
|
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-08 23:40:44 -04:00
|
|
|
source = toString self.packages.${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
|
|
|
|
thunderbird # TODO: use programs.thunderbird
|
|
|
|
protonmail-bridge
|
|
|
|
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-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 = [
|
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)$"
|
|
|
|
|
|
|
|
"workspace special:thunder silent,^(thunderbird)$"
|
|
|
|
"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
|
|
|
|
|
|
|
"$mainMod, T, togglespecialworkspace, thunder"
|
|
|
|
"$mainMod, S, togglespecialworkspace, spot"
|
2024-02-05 06:25:43 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|