2024-05-11 17:05:42 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-06-04 14:24:13 +01:00
|
|
|
catppuccinVariant ? "Mocha",
|
2024-05-11 17:05:42 +01:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Programs
|
2024-05-27 20:07:18 +01:00
|
|
|
../programs/desktop/default.nix
|
2024-05-11 17:05:42 +01:00
|
|
|
../programs/shell/default.nix
|
|
|
|
../programs/emacs/default.nix
|
2024-05-17 16:14:50 +01:00
|
|
|
../programs/nyxt/default.nix
|
2024-05-12 10:49:56 +01:00
|
|
|
../programs/firefox/default.nix
|
2024-05-11 17:05:42 +01:00
|
|
|
../programs/cava/default.nix
|
|
|
|
../programs/obs/default.nix
|
|
|
|
# Services
|
|
|
|
../services/email/work.nix # TODO combine again at some point
|
|
|
|
../services/password-store/default.nix
|
|
|
|
# Additional Scripts
|
|
|
|
../scripts/default.nix
|
|
|
|
];
|
|
|
|
programs.home-manager.enable = true;
|
2024-05-17 16:14:50 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-05-11 17:05:42 +01:00
|
|
|
services = {
|
2024-06-01 07:16:06 +01:00
|
|
|
gpg-agent.pinentryPackage = pkgs.pinentry-gtk2;
|
2024-05-11 17:05:42 +01:00
|
|
|
avizo.enable = true;
|
|
|
|
syncthing.enable = true;
|
|
|
|
udiskie = {
|
|
|
|
enable = true;
|
|
|
|
notify = true;
|
|
|
|
automount = true;
|
|
|
|
tray = "never";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gtk = with lib.strings; let
|
|
|
|
accent = "Lavender";
|
2024-06-04 14:24:13 +01:00
|
|
|
variant = catppuccinVariant;
|
|
|
|
type =
|
|
|
|
if variant == "Latte"
|
|
|
|
then "Light"
|
|
|
|
else "Dark";
|
2024-06-05 13:53:03 +01:00
|
|
|
inverseType =
|
|
|
|
if type == "Light"
|
|
|
|
then "Dark"
|
|
|
|
else "Light";
|
2024-05-11 17:05:42 +01:00
|
|
|
in {
|
|
|
|
enable = true;
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
accent = toLower accent;
|
|
|
|
flavor = toLower variant;
|
|
|
|
};
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
};
|
|
|
|
cursorTheme = {
|
2024-06-04 14:24:13 +01:00
|
|
|
package = pkgs.catppuccin-cursors."${toLower variant}${type}";
|
2024-06-05 13:53:03 +01:00
|
|
|
name = "Catppuccin-${variant}-${inverseType}-Cursors";
|
2024-05-11 17:05:42 +01:00
|
|
|
size = 32;
|
|
|
|
};
|
|
|
|
theme = let
|
|
|
|
size = "Standard";
|
|
|
|
in {
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [(toLower accent)];
|
|
|
|
size = toLower size;
|
|
|
|
variant = toLower variant;
|
|
|
|
};
|
2024-06-04 14:24:13 +01:00
|
|
|
name = "Catppuccin-${variant}-${size}-${accent}-${type}";
|
2024-05-11 17:05:42 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg = {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
home = {
|
|
|
|
homeDirectory = "/home/${config.home.username}";
|
|
|
|
packages = with pkgs; [
|
2024-05-30 13:41:12 +01:00
|
|
|
rclone
|
2024-05-11 17:05:42 +01:00
|
|
|
git-sync
|
|
|
|
pinentry
|
|
|
|
fd
|
|
|
|
ripgrep
|
|
|
|
ffmpeg
|
2024-05-17 16:14:50 +01:00
|
|
|
mpv
|
2024-05-27 11:58:53 +01:00
|
|
|
evince
|
2024-05-17 16:14:50 +01:00
|
|
|
libreoffice-fresh
|
|
|
|
inkscape
|
2024-05-31 09:33:10 +01:00
|
|
|
remmina
|
2024-05-17 16:14:50 +01:00
|
|
|
webcord
|
|
|
|
signal-desktop
|
2024-05-27 08:38:31 +01:00
|
|
|
whatsapp-for-linux
|
2024-05-11 17:05:42 +01:00
|
|
|
];
|
|
|
|
stateVersion = "23.05";
|
|
|
|
};
|
|
|
|
}
|