2022-06-21 01:47:36 +02:00
|
|
|
{ pkgs, config, inputs, ... } @ args: let
|
2022-04-03 18:03:55 +02:00
|
|
|
inherit (pkgs) lib;
|
|
|
|
inherit (pkgs.lib) mkForce mkIf optionals;
|
2022-06-21 01:47:36 +02:00
|
|
|
graphics = !config.machineVars.headless;
|
2022-04-03 18:03:55 +02:00
|
|
|
in {
|
2022-03-07 16:01:52 +01:00
|
|
|
imports = [
|
|
|
|
./shellOptions.nix
|
|
|
|
./packages.nix
|
|
|
|
|
|
|
|
./misc/ssh/hosts/pvv.nix
|
|
|
|
|
|
|
|
./programs/comma.nix
|
|
|
|
./programs/gh.nix
|
|
|
|
./programs/git.nix
|
|
|
|
./programs/neovim.nix
|
|
|
|
./programs/newsboat.nix
|
2022-04-03 18:03:55 +02:00
|
|
|
./programs/tmux.nix
|
|
|
|
./programs/zsh
|
|
|
|
|
2022-06-21 01:47:36 +02:00
|
|
|
./modules
|
|
|
|
|
2022-04-03 18:20:50 +02:00
|
|
|
inputs.secrets.outputs.nixosModule
|
2022-04-03 18:03:55 +02:00
|
|
|
] ++ optionals graphics [
|
|
|
|
./misc/mimetypes.nix
|
|
|
|
|
|
|
|
./programs/alacritty.nix
|
|
|
|
./programs/emacs
|
|
|
|
./programs/ncmpcpp.nix
|
2022-03-07 16:01:52 +01:00
|
|
|
./programs/qutebrowser.nix
|
|
|
|
./programs/rofi.nix
|
|
|
|
./programs/vscode.nix
|
2022-04-03 16:15:09 +02:00
|
|
|
./programs/xmobar
|
2022-04-03 16:14:28 +02:00
|
|
|
./programs/xmonad
|
2022-03-07 16:01:52 +01:00
|
|
|
./programs/zathura.nix
|
|
|
|
|
|
|
|
./services/dunst.nix
|
|
|
|
./services/mpd.nix
|
|
|
|
./services/picom.nix
|
|
|
|
./services/stalonetray.nix
|
|
|
|
./services/sxhkd.nix
|
|
|
|
];
|
|
|
|
|
2022-06-21 01:47:36 +02:00
|
|
|
inherit (config) machineVars colors;
|
|
|
|
|
2022-03-07 16:01:52 +01:00
|
|
|
home = {
|
2022-06-12 00:23:10 +02:00
|
|
|
stateVersion = "22.05";
|
2022-03-07 16:01:52 +01:00
|
|
|
username = "h7x4";
|
|
|
|
homeDirectory = "/home/h7x4";
|
2022-04-03 18:03:55 +02:00
|
|
|
file = {
|
|
|
|
".ghci".text = ''
|
|
|
|
:set prompt "${lib.termColors.front.magenta "[GHCi]λ"} ".
|
|
|
|
'';
|
|
|
|
|
|
|
|
".pyrc".text = ''
|
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
|
|
|
|
# You also need \x01 and \x02 to separate escape sequence, due to:
|
|
|
|
# https://stackoverflow.com/a/9468954/1147688
|
|
|
|
sys.ps1='\x01\x1b${lib.termColors.front.blue "[Python]> "}\x02>>>\x01\x1b[0m\x02 ' # bright yellow
|
|
|
|
sys.ps2='\x01\x1b[1;49;31m\x02...\x01\x1b[0m\x02 ' # bright red
|
|
|
|
'';
|
|
|
|
};
|
2022-03-07 16:01:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
news.display = "silent";
|
|
|
|
|
2022-04-03 18:03:55 +02:00
|
|
|
fonts.fontconfig.enable = mkForce true;
|
2022-03-07 16:01:52 +01:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
|
|
|
|
bat.enable = true;
|
|
|
|
bottom.enable = true;
|
|
|
|
exa.enable = true;
|
2022-04-03 18:03:55 +02:00
|
|
|
feh.enable = mkIf graphics true;
|
2022-03-07 16:01:52 +01:00
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
defaultCommand = "fd --type f";
|
|
|
|
};
|
|
|
|
gpg.enable = true;
|
|
|
|
irssi.enable = true;
|
|
|
|
kakoune.enable = true;
|
|
|
|
lazygit.enable = true;
|
|
|
|
man = {
|
|
|
|
enable = true;
|
|
|
|
generateCaches = true;
|
|
|
|
};
|
2022-04-03 18:03:55 +02:00
|
|
|
mpv.enable = mkIf graphics true;
|
|
|
|
obs-studio.enable = mkIf graphics true;
|
2022-03-07 16:01:52 +01:00
|
|
|
ssh.enable = true;
|
|
|
|
skim = {
|
|
|
|
enable = true;
|
|
|
|
defaultCommand ="fd --type f";
|
|
|
|
};
|
|
|
|
texlive = {
|
|
|
|
enable = true;
|
|
|
|
# packageSet = pkgs.texlive.combined.scheme-medium;
|
|
|
|
};
|
|
|
|
zoxide.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2022-04-03 18:03:55 +02:00
|
|
|
gnome-keyring.enable = mkIf graphics true;
|
2022-03-07 16:01:52 +01:00
|
|
|
dropbox.enable = true;
|
2022-04-03 18:03:55 +02:00
|
|
|
network-manager-applet.enable = mkIf graphics true;
|
2022-03-07 16:01:52 +01:00
|
|
|
# redshift.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
manual = {
|
|
|
|
html.enable = true;
|
|
|
|
manpages.enable = true;
|
|
|
|
json.enable = true;
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:03:55 +02:00
|
|
|
xdg.enable = true;
|
|
|
|
|
|
|
|
xsession = mkIf graphics {
|
|
|
|
pointerCursor = {
|
|
|
|
package = pkgs.capitaine-cursors;
|
|
|
|
name = "capitaine-cursors";
|
|
|
|
size = 16;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk = mkIf graphics {
|
2022-03-07 16:01:52 +01:00
|
|
|
enable = true;
|
|
|
|
font = {
|
|
|
|
name = "Droid Sans";
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
name = "Papirus";
|
|
|
|
};
|
|
|
|
theme = {
|
|
|
|
package = pkgs.vimix-gtk-themes;
|
|
|
|
name = "VimixDark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:03:55 +02:00
|
|
|
qt = mkIf graphics {
|
2022-03-07 16:01:52 +01:00
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk";
|
|
|
|
style = {
|
|
|
|
name = "adwaita-dark";
|
|
|
|
package = pkgs.adwaita-qt;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|