Files
nixos/user/home.nix
2025-10-30 09:24:23 +01:00

131 lines
3.3 KiB
Nix

{ pkgs, ... }:
{
imports = [ ./packages.nix ];
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
"application/pdf" = "sioyek.desktop";
"application/rnote" = "rnote.desktop";
"video/mp4" = "mpv.desktop";
"image/*" = "fehcustom.desktop";
};
};
# Enable and configure the gnome terminal for the nemo file manager
programs.gnome-terminal = {
enable = true;
showMenubar = false;
themeVariant = "dark";
profile."17ef1520-f08d-403f-b033-d8ccee6b01f9" = {
visibleName = "MainHome";
transparencyPercent = 60;
font = "FiraCode Nerd Font 12"; # Fira is installed on the system by the nixos config
default = true;
audibleBell = false;
cursorBlinkMode = "off";
colors = {
backgroundColor = "#1d1d1d";
cursor = {
foreground = "#1d1d1d"; # text inside cursor
background = "#ffb86c"; # light orange block
};
foregroundColor = "#f7f6ec";
palette = [ "#343835" "#ce3e60" "#7bb75b" "#e8b32a" "#4c99d3" "#a57fc4" "#389aac" "#f9faf6"
"#585a58" "#d18ea6" "#767e2b" "#77592e" "#337879" "#7f5190" "#76bbca" "#b1b5ae" ];
};
};
};
services.udiskie = {
enable = true;
notify = true;
automount = true;
tray = "auto";
settings = {
# workaround for
# https://github.com/nix-community/home-manager/issues/632
program_options = {
# replace with your favorite file manager
file_manager = "${pkgs.nemo-with-extensions}/bin/nemo";
};
};
};
xdg.desktopEntries.fehcustom = {
name = "FehCustom";
terminal = false;
exec = "${pkgs.feh}/bin/feh -d --keep-zoom-vp --draw-exif --start-at %u";
};
home = {
username = "jonas";
homeDirectory = "/home/jonas";
pointerCursor = {
gtk.enable = true;
name = "catppuccin-frappe-rosewater-cursors";
package = pkgs.catppuccin-cursors.frappeRosewater;
size = 18;
};
};
# Theming for ease of use of gui apps
gtk = {
enable = true;
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus-Dark";
};
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
qt = {
enable = true;
platformTheme.name = "qtct";
style.name = "kvantum";
};
xdg.configFile."Kvantum/kvantum.kvconfig".source =
(pkgs.formats.ini { }).generate "kvantum.kvconfig" {
General.theme = "KvAdaptaDark";
};
xdg.configFile."qt6ct/qt6ct.conf".source = pkgs.writeTextFile {
name = "qt6ct.conf";
text =
''
[Appearance]
icon_theme=Papirus-Dark
style=kvantum
standard_dialogs=default
'';
};
programs.starship = {
enable = true;
settings = {
add_newline = false;
aws.disabled = true;
gcloud.disabled = true;
line_break.disabled = true;
sudo = {
disabled = false;
symbol = "SUDO ";
style = "bold red";
};
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.stateVersion = "24.11"; # Dont change
}