nix-dotfiles/hosts/randolph/home.nix

237 lines
5.4 KiB
Nix
Raw Normal View History

2024-01-04 21:21:04 -05:00
{ config, lib, pkgs, ... }:
let
scripts = ../../scripts;
extra = ../../extra;
terminal = pkgs.alacritty;
2024-04-13 23:45:36 -04:00
in {
2024-04-14 00:14:12 -04:00
imports = [
../../programs/gammastep.nix
../../programs/kdeconnect.nix
../../programs/ssh.nix
../../programs/zsh.nix
../../programs/taskwarrior.nix
../../programs/clifm.nix
2024-04-14 00:14:12 -04:00
];
2024-01-04 21:21:04 -05:00
home.username = "alice";
home.homeDirectory = "/home/alice";
2024-01-04 21:21:04 -05:00
home.stateVersion = "23.11";
2024-01-10 10:26:07 -05:00
# Configure cursor
home.pointerCursor = {
package = pkgs.vanilla-dmz;
name = "Vanilla-DMZ";
size = 256;
};
2024-01-10 10:26:07 -05:00
# Configure icon theme
gtk = {
enable = true;
iconTheme = {
name = "Papirus";
package = pkgs.papirus-icon-theme;
};
};
# Configure xdg-desktop-portal (for file picker, etc.)
# xdg.portal = {
# enable = true;
# };
2024-01-10 10:26:07 -05:00
# Install packages
2024-04-13 23:45:36 -04:00
home.packages = with pkgs;
let
xdg-terminal-exec =
callPackage ../../pkgs/xdg-terminal-exec/xdg-terminal-exec.nix { };
mons = callPackage ../../pkgs/mons/mons.nix { };
archivo = callPackage ../../pkgs/archivo/archivo.nix { };
highway-gothic = callPackage ../../pkgs/highway-gothic/highway-gothic.nix { };
2024-11-01 12:04:16 -04:00
olympus = callPackage ../../pkgs/olympus/olympus.nix { };
2024-04-13 23:45:36 -04:00
in [ gcc tree-sitter ] ++ # Basic dev tools
[ marksman nil ] ++ # Language servers except those installed through package sections
2024-04-13 23:45:36 -04:00
[ texliveFull texlab ] ++ # LaTeX
[ typst typstyle tinymist ] ++ # Typst
2024-04-13 23:45:36 -04:00
(with ocamlPackages; [
ocaml
opam
dune_3
dune-release
merlin
ocaml-lsp
odoc
ocamlformat
utop
]) ++ # OCaml
[ rustup ] ++ # Rust
2024-05-10 00:13:22 -04:00
[ go gopls ] ++ # Golang
2024-06-17 20:46:37 -04:00
(with elmPackages; [ elm elm-language-server elm-format elm-test ]) ++
2024-04-13 23:45:36 -04:00
[ python3 ] ++ # I guess.....
[
kak-lsp
brightnessctl
grim
slurp
wl-clipboard
jq
xdg-terminal-exec
blueman
upower
2024-07-20 02:22:07 -04:00
proselint # for prose lint
glib
2024-04-13 23:45:36 -04:00
] ++ # Basic utilities
[ bitwarden-cli htop snore hledger hledger-ui clifm ]
2024-04-13 23:45:36 -04:00
++ # Personalized selection of command-line (CLI/TUI) apps
[ terminal ] ++ # Terminal emulator
[
qutebrowser
2024-04-13 23:45:36 -04:00
evince
imv
vlc
pavucontrol
] ++ # Basic graphical apps
[
libreoffice
signal-desktop
element-desktop
prismlauncher
mumble
gimp
inkscape
deluge-gtk
shotwell
lorien
keepassxc
2024-04-25 13:15:11 -04:00
zulip
2024-04-26 09:22:10 -04:00
filezilla
bitwarden
josm
2024-04-13 23:45:36 -04:00
] ++ # Personalized selection of graphical apps
2024-11-01 12:27:14 -04:00
[ mons shticker-book-unwritten ] ++ # Games
2024-04-13 23:45:36 -04:00
[ swaybg bemenu j4-dmenu-desktop ] ++ # Sway- and Wayland-related packages
[
noto-fonts
redhat-official-fonts
overpass
ibm-plex
rubik
archivo
highway-gothic
merriweather-sans
paratype-pt-serif
libertinus
2024-04-13 23:45:36 -04:00
font-awesome
] ++ # Fonts
# [ papirus-icon-theme ] ++ # Icons
# [ vanilla-dmz ] ++ # Cursor
2024-11-01 12:04:16 -04:00
[ activate-linux android-studio olympus ] ++ # Temp
2024-04-13 23:45:36 -04:00
[ ];
2024-01-04 21:21:04 -05:00
programs.home-manager.enable = true;
2024-01-04 21:21:04 -05:00
programs.git = {
enable = true;
userName = "vorboyvo";
userEmail = "mrsirofvibe@outlook.com";
extraConfig = {
2024-04-13 23:45:36 -04:00
init.defaultBranch = "main";
core.editor = "kak";
};
2024-01-04 21:21:04 -05:00
};
wayland.windowManager.sway = import ../../programs/sway.nix {
2024-04-13 23:45:36 -04:00
inherit scripts extra config lib pkgs terminal;
};
2024-04-13 23:45:36 -04:00
programs.waybar =
import ../../programs/waybar.nix { inherit scripts config lib pkgs terminal; };
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-01-04 21:21:04 -05:00
fonts.fontconfig.enable = true;
2024-04-13 23:45:36 -04:00
xdg.configFile."fontconfig/conf.d/20-default.fonts.conf".source =
"${extra}/20-default-fonts.conf";
# terminal emulator
programs.alacritty.enable = true;
2024-04-13 23:45:36 -04:00
programs.kakoune = import ../../programs/kakoune.nix pkgs;
2024-04-13 23:45:36 -04:00
xdg.configFile."kak-lsp/kak-lsp.toml".source =
../../programs/kakoune/kak-lsp.toml;
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;
};
2024-04-13 23:45:36 -04:00
programs.pandoc = { enable = true; };
# Configure notifications
services.dunst = {
enable = true;
settings = {
global = {
font = "Red Hat Display 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"
];
};
programs.firefox = import ../../programs/firefox.nix { inherit pkgs; };
programs.thunderbird = import ../../programs/thunderbird.nix;
2024-01-23 10:46:07 -05:00
}