nix-dotfiles/hosts/randolph/home.nix

190 lines
4 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
2024-01-04 21:21:04 -05:00
rec {
imports = [
../../snippets/common_home.nix
];
2024-01-04 21:21:04 -05:00
home.stateVersion = "23.11";
2024-01-10 10:26:07 -05:00
# Configure default applications as per /snippets/defaults.nix
defaultPrograms = with pkgs; {
terminal = alacritty;
editor = kakoune;
browser = firefox;
mail = thunderbird;
};
2024-01-10 10:26:07 -05:00
# Configure cursor
home.pointerCursor.size = 256;
2024-01-10 10:26:07 -05:00
# Install packages
home.packages =
let
overlay = (final: prev: {
olympus = prev.callPackage ../../pkgs/olympus/package.nix { };
olympus-unwrapped = prev.callPackage ../../pkgs/olympus-unwrapped/package.nix { };
});
in
(with (pkgs.extend overlay); [ olympus ]) ++
(with pkgs;
2024-04-13 23:45:36 -04:00
let
archivo = callPackage ../../pkgs/archivo/archivo.nix { };
2025-05-23 20:41:04 -04:00
# highway-gothic = callPackage ../../pkgs/highway-gothic/highway-gothic.nix { };
in
2024-04-13 23:45:36 -04:00
[
blueman
kalker
2025-03-19 11:59:45 -04:00
tldr
2024-04-13 23:45:36 -04:00
] ++ # Basic utilities
2025-05-21 16:14:51 -04:00
[ htop snore ]
2024-04-13 23:45:36 -04:00
++ # Personalized selection of command-line (CLI/TUI) apps
[ defaultPrograms.terminal ] ++ # Terminal emulator
2024-04-13 23:45:36 -04:00
[
vlc
pavucontrol
2024-12-17 21:56:38 -05:00
font-manager
2024-04-13 23:45:36 -04:00
] ++ # Basic graphical apps
[
libreoffice
signal-desktop
prismlauncher
mumble
gimp
inkscape
2025-01-31 11:11:28 -05:00
deluge-gtk # Client BitTorrent
2024-04-13 23:45:36 -04:00
shotwell
lorien
keepassxc
2025-05-06 13:44:29 -04:00
zulip # removed temporarily because of electron issue
2024-04-26 09:22:10 -04:00
filezilla
bitwarden
activate-linux
2025-01-31 11:11:28 -05:00
remmina
2025-05-21 16:14:51 -04:00
pinta
2024-04-13 23:45:36 -04:00
] ++ # Personalized selection of graphical apps
2024-12-03 00:40:46 -05:00
[
shticker-book-unwritten
] ++ # Games
2024-04-13 23:45:36 -04:00
[
noto-fonts
2024-12-17 21:56:38 -05:00
inter
2024-04-13 23:45:36 -04:00
redhat-official-fonts
overpass
ibm-plex
rubik
archivo
2025-05-23 20:41:04 -04:00
# highway-gothic
merriweather-sans
2024-12-17 21:56:38 -05:00
paratype-pt-sans
paratype-pt-serif
libertinus
2024-11-28 11:58:08 -05:00
roboto
2025-01-31 11:11:28 -05:00
lato
merriweather
2024-12-17 21:56:38 -05:00
openmoji-black
openmoji-color
2024-04-13 23:45:36 -04:00
] ++ # Fonts
[
hunspell
hunspellDicts.fr-any
hunspellDicts.fr-moderne
hunspellDicts.fr-classique
] ++ # Spell checking
2025-05-21 16:14:51 -04:00
[ keyutils ] ++ # Temp
[ ]);
2024-01-04 21:21:04 -05:00
programs.home-manager.enable = true;
2024-01-04 21:21:04 -05:00
programs.swaylock = {
enable = true;
2024-04-13 23:45:36 -04:00
settings = { font-size = 14; };
2024-01-04 21:21:04 -05:00
};
services.swayidle = {
enable = true;
2024-04-13 23:45:36 -04:00
events = [{
event = "before-sleep";
command = "${pkgs.lib.getExe pkgs.swaylock} -f";
}];
2024-01-04 21:21:04 -05:00
};
# Fixes electron apps
home.sessionVariables =
2024-11-12 11:58:18 -05:00
{
NIXOS_OZONE_WL = "1";
};
2024-01-05 21:55:45 -05:00
# configure fonts correctly
2024-12-17 21:56:38 -05:00
fonts.fontconfig = {
enable = true;
defaultFonts = {
2025-01-31 11:11:28 -05:00
sansSerif = [ "Rubik" "Noto Sans" "DejaVu Sans" ];
2024-12-17 21:56:38 -05:00
serif = [ "Noto Serif" "DejaVu Serif" ];
monospace = [ "Noto Mono" ];
2025-01-31 11:11:28 -05:00
emoji = [ "OpenMoji" ];
2024-12-17 21:56:38 -05:00
};
};
# terminal emulator
programs.alacritty.enable = true;
2024-04-13 23:45:36 -04:00
xdg.desktopEntries.kakoune = {
name = "Kakoune";
genericName = "Text Editor";
comment = "Edit text files";
icon = "kak";
exec = "kak %F";
terminal = true;
mimeType = [
2024-04-13 23:45:36 -04:00
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
"text/x-devicetree-source"
];
2024-04-13 23:45:36 -04:00
categories = [ "Utility" "TextEditor" ];
};
2024-04-13 23:45:36 -04:00
programs.zathura = {
enable = true;
2025-03-14 09:20:03 -04:00
options = {
selection-clipboard = "clipboard";
synctex = "true";
synctex-editor-command = "texlab inverse-search -i %{input} -l %{line}";
};
};
2024-04-13 23:45:36 -04:00
programs.pandoc = { enable = true; };
# Configure notifications
services.dunst = {
enable = true;
settings = {
global = {
2025-01-31 11:11:28 -05:00
font = "Rubik 12";
mouse_left_click = "do_action, close_current";
mouse_middle_click = "close_all";
mouse_right_click = "close_current";
};
};
};
services.batsignal = {
enable = true;
extraArgs = [
"-w 20"
"-c 10"
"-d 3"
];
};
2024-01-23 10:46:07 -05:00
}