nixconfig/home.nix

500 lines
11 KiB
Nix
Raw Normal View History

2023-11-15 16:09:47 +00:00
args@{ config, pkgs, hyprland, split-monitor-workspaces, flatpaks, ... }:
{
home.username = "zilti";
home.homeDirectory = "/home/zilti";
home.packages = with pkgs; [
2023-11-22 17:05:08 +00:00
appimage-run
binutils
2023-11-16 10:30:36 +00:00
bitwarden
2023-11-20 17:18:47 +00:00
brightnessctl
2023-11-16 10:30:36 +00:00
coreutils-full
2023-11-15 16:09:47 +00:00
discord
2023-11-27 10:24:47 +00:00
edwood
2023-11-22 17:05:08 +00:00
file
2023-11-16 10:30:36 +00:00
fossil
2023-11-23 21:42:11 +00:00
fprintd-tod
2023-11-15 16:09:47 +00:00
freetube
freetype
2023-11-16 10:30:36 +00:00
gamescope
gcc
git-cola
git-doc
git-filter-repo
grim
2023-12-02 08:59:40 +00:00
guile
2023-11-19 23:03:24 +00:00
guix
2023-11-27 10:24:47 +00:00
home-manager
2023-11-16 10:30:36 +00:00
hyprpaper
iconv
kteatime
lagrange
2023-11-15 16:09:47 +00:00
libffi
2023-11-16 10:30:36 +00:00
libgccjit
2024-07-02 17:45:10 +00:00
kdePackages.plasma-desktop
kdePackages.plasma-workspace
kdePackages.dolphin
kdePackages.ksshaskpass
kdePackages.okular
2023-11-16 10:30:36 +00:00
libuuid
lm_sensors
2023-11-16 11:09:43 +00:00
gnumake
2023-12-15 12:41:21 +00:00
# (nerdfonts.override { fonts = [ "VictorMono" "MPlus" ]; })
nerdfonts
2023-11-16 10:30:36 +00:00
nil
nixfmt
2024-07-02 17:45:10 +00:00
# nwg-displays
2023-11-16 10:30:36 +00:00
pciutils
2024-07-02 17:45:10 +00:00
# perl538Packages.DigestHMAC
# perl538Packages.FileLibMagic
# perl538Packages.IOSocketINET6
# perl538Packages.IOSocketSSL
# perl538Packages.MIMELite
# perl538Packages.TermReadKey
2023-11-17 23:41:35 +00:00
pharo
2023-11-19 23:03:24 +00:00
pijul
2023-11-16 10:30:36 +00:00
pinentry-qt
pixman
2023-11-17 02:22:38 +00:00
plan9port
2023-11-16 10:30:36 +00:00
pwvucontrol
2023-11-27 10:24:47 +00:00
senpai
2023-11-16 10:30:36 +00:00
signal-desktop
slurp
space-cadet-pinball
sqlite
stow
swappy
sysstat
telegram-desktop
ungoogled-chromium
unzip
usbutils
2023-11-28 15:46:57 +00:00
vlc
2023-11-16 10:30:36 +00:00
wlr-randr
2023-11-15 16:09:47 +00:00
];
2023-11-19 23:29:24 +00:00
imports = [ ./hyprland/hyprland.nix
./waybar/settings.nix
./emacs/emacs.nix
2023-12-06 12:12:37 +00:00
# ./chicken/chicken.nix
];
2023-11-15 16:09:47 +00:00
home.stateVersion = "23.11";
programs.home-manager.enable = true;
2023-12-06 11:16:14 +00:00
home.sessionPath = [ "${config.home.homeDirectory}/.config/emacs/bin" "${config.home.homeDirectory}/.local/bin" ];
2023-11-15 16:09:47 +00:00
home.sessionVariables = {
PASSWORD_STORE_DIR =
"${config.home.homeDirectory}/.local/share/password-store";
SSH_ASKPASS = "${pkgs.libsForQt5.ksshaskpass}/bin/ksshaskpass";
2023-12-06 11:16:14 +00:00
CHICKEN_DOC_REPOSITORY = "/home/zilti/.local/share/chicken-doc";
CHICKEN_INSTALL_REPOSITORY = "/home/zilti/.local/share/chicken/11/eggs";
CHICKEN_INSTALL_PREFIX = "/home/zilti/.local/bin";
2023-11-15 16:09:47 +00:00
};
home.pointerCursor = {
package = pkgs.catppuccin-cursors.lattePeach;
gtk.enable = true;
x11.enable = true;
name = "Catppuccin-Latte-Peach-Cursors";
size = 32;
};
2023-11-28 15:46:57 +00:00
home.file.".config/sway/config" = {
enable = true;
text = builtins.readFile /opt/nixconfig/swayfx/config.in;
};
2023-11-15 16:09:47 +00:00
accounts = {
2023-11-19 23:29:24 +00:00
# calendar = {
# basePath = "${config.home.homeDirectory}/calendars";
# accounts = {
# nextcloud = {
# primary = true;
# remote = {
# type = "caldav";
# url = "https://nextcloud.lyrion.ch/remote.php/dav/calendars/zilti";
# userName = "dziltener@lyrion.ch";
# passwordCommand = [ "pass" "Privat/Nextcloud" ];
# };
# vdirsyncer = {
# enable = false;
# auth = "guess";
# itemTypes = "caldav";
# };
# khal = {
# enable = true;
# type = "discover";
# };
# };
# };
# };
# contact = {
# basePath = "${config.home.homeDirectory}/contacts";
# accounts = {
# nextcloud = {
# remote = {
# type = "carddav";
# url =
# "https://nextcloud.lyrion.ch/rempte.php/dav/addressbooks/users/zilti";
# userName = "dziltener@lyrion.ch";
# passwordCommand = [ "pass" "Privat/Nextcloud" ];
# };
# vdirsyncer = {
# enable = false;
# auth = "digest";
# };
# khal = { enable = true; };
# khard = { enable = true; };
# };
# };
# };
2023-11-15 16:09:47 +00:00
email = {
accounts = {
LMail = {
realName = "Daniel Ziltener";
userName = "dziltener";
passwordCommand = "pass Privat/Mailaccount | head -n 1";
primary = true;
address = "dziltener@lyrion.ch";
imap = {
host = "lyrion.ch";
tls = {
enable = true;
useStartTls = true;
};
};
smtp = {
host = "lyrion.ch";
tls = {
enable = true;
useStartTls = true;
};
};
thunderbird = { enable = true; };
aerc = { enable = true; };
};
RedSky = {
flavor = "gmail.com";
realName = "Daniel Ziltener";
userName = "dz@redsky.io";
passwordCommand = "pass Privat/RedSkyGMail";
address = "dz@redsky.io";
thunderbird = { enable = true; };
};
};
};
};
services.flatpak = {
enableModule = true;
remotes = {
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
"flathub-beta" =
"https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
};
packages = [
"flathub:app/com.github.tchx84.Flatseal//stable"
"flathub:app/com.usebottles.bottles//stable"
"flathub:app/com.valvesoftware.Steam//stable"
"flathub:app/info.beyondallreason.bar//stable"
];
};
fonts.fontconfig.enable = true;
services.plan9port = {
fontsrv.enable = true;
plumber.enable = true;
};
programs.kitty = {
enable = true;
environment = { };
settings = {
background_opacity = "0.85";
kitty_mod = "ctrl+shift";
enabled_layouts = "horizontal";
};
keybindings = { "kitty_mod+enter" = "new_window"; };
font = {
name = "VictorMono Nerd Font Mono";
size = 10;
};
theme = "Catppuccin-Frappe";
};
programs.bash = {
enable = true;
enableCompletion = true;
bashrcExtra = ''
eval "$(${pkgs.starship}/bin/starship init bash)"
'';
};
programs.tmux = {
enable = true;
mouse = true;
extraConfig = ''set-option -sa terminal-overrides ",xterm*:Tc"'';
};
# https://github.com/nix-community/nix-direnv
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
2024-07-02 17:45:10 +00:00
# programs.starship = let flavour = "frappe";
# in {
# enable = true;
# settings = {
# aws.disabled = true;
# gcloud.disabled = true;
# format = "$all";
# palette = "catppuccin_${flavour}";
# } // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub {
# owner = "catppuccin";
# repo = "starship";
# rev = "5629d2356f62a9f2f8efad3ff37476c19969bd4f";
# sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0=";
# } + /palettes/${flavour}.toml));
# };
2023-11-15 16:09:47 +00:00
programs.hstr = { enable = true; };
programs.htop = { enable = true; };
programs.ripgrep = { enable = true; };
programs.gpg = { enable = true; };
2023-11-27 10:24:47 +00:00
home.file.".config/senpai/senpai.scfg" = {
enable = true;
text = ''
address ircs://lyrion.ch
nickname zilti
realname "Daniel Ziltener"
password-cmd pass show Privat/Soju
'';
};
2023-11-19 23:29:24 +00:00
home.file.".gnupg/gpg-agent.conf" = {
2023-11-15 16:09:47 +00:00
enable = true;
text = ''
grab
pinentry-program ${pkgs.pinentry-qt}/bin/pinentry-qt
allow-emacs-pinentry
allow-loopback-pinentry
'';
};
programs.rbw = {
enable = true;
settings = {
base_url = "vaultwarden.lyrion.ch";
email = "dziltener@lyrion.ch";
pinentry = "qt";
};
};
programs.git = {
enable = true;
userName = "Daniel Ziltener";
userEmail = "dziltener@lyrion.ch";
signing = {
key = "37F655BAF43BC0FF300A91A1B38976E82C9DAE42";
signByDefault = true;
};
diff-so-fancy = { enable = true; };
extraConfig = {
sendemail = {
smtpserver = "lyrion.ch";
smtpuser = "dziltener";
smtpencryption = "starttls";
smtpserverport = 465;
};
rebase.autoStash = true;
pull.rebase = true;
push.autoSetupRemote = true;
};
};
programs.git-cliff = {
enable = true;
# https://git-cliff.org/docs/configuration
settings = { };
};
programs.tealdeer = { enable = true; };
# https://github.com/ianthehenry/sd
programs.script-directory = {
enable = true;
settings = { SD_EDITOR = "vim"; };
};
2024-07-02 17:45:10 +00:00
# programs.keychain = {
# enable = true;
# enableBashIntegration = true;
# enableXsessionIntegration = true;
# agents = [ "ssh" "gpg" ];
# keys =
# [ "id_rsa" "personal_ed" "37F655BAF43BC0FF300A91A1B38976E82C9DAE42" ];
# };
2023-11-15 16:09:47 +00:00
programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
};
programs.browserpass = { enable = true; };
services.pueue = { enable = true; };
services.network-manager-applet.enable = true;
services.batsignal = { enable = true; };
# services.fusuma = {
# enable = true;
# };
services.copyq = { enable = true; };
# programs.vdirsyncer = {
# enable = true;
# };
# programs.khal = {
# enable = true;
# };
# programs.khard = {
# enable = true;
# };
2023-11-19 23:29:24 +00:00
# programs.aerc = {
# enable = true;
# extraConfig = { general = { unsafe-accounts-conf = true; }; };
# };
2023-11-15 16:09:47 +00:00
services.kdeconnect = {
enable = true;
indicator = true;
};
programs.ssh = {
enable = true;
matchBlocks = {
"github.com" = {
user = "git";
hostname = "github.com";
identitiesOnly = true;
identityFile = "~/.ssh/personal_ed";
};
"gitea.lyrion.ch" = {
user = "git";
hostname = "gitea.lyrion.ch";
port = 7920;
identitiesOnly = true;
identityFile = "~/.ssh/personal_ed";
};
};
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
2024-07-02 17:45:10 +00:00
# programs.swaylock = {
# enable = true;
# package = "${pkgs.swaylock-effects}";
# settings = {
# screenshots = true;
# clock = true;
# indicator-idle-visible = true;
# grace = 3;
# fade-in = 3;
# effect-blur = "7x5";
# effect-vignette = "0.5:0.5";
# };
# };
# services.swayidle = {
# enable = true;
# events = [ ];
# timeouts = [{
# timeout = 600;
# command = "${pkgs.swaylock-effects}/bin/swaylock";
# }];
# };
# services.mako = {
# enable = true;
# defaultTimeout = 5000;
# };
# services.gammastep = {
# enable = true;
# provider = "geoclue2";
# temperature = {
# day = 5500;
# night = 2700;
# };
# };
# programs.wlogout = { enable = true; };
# programs.fuzzel = {
# enable = true;
# settings = {
# main = {
# terminal = "${pkgs.kitty}/bin/kitty";
# width = 100;
# fields = "filename,name,generic,exec";
# show-actions = true;
# filter-desktop = false;
# layer = "overlay";
# };
# };
# };
# home.file.tofi-conf = {
# enable = true;
# target = ".config/tofi/config";
# text = ''
# drun-launch = true
# font = Victor Mono Nerd Font
# font-size = 12
# text-cursor = true
# terminal = kitty
# width = 1200
# height = 720
# '' + (builtins.readFile (pkgs.fetchFromGitHub {
# owner = "catppuccin";
# repo = "tofi";
# rev = "2e74ddba0c582b2ca2d9d06f67f5a902c3a093fb";
# sha256 = "sha256-XUwixvy2WyfaSRHM8cTnOn8lKv+vbhheDA1Z47ap+Mc=";
# } + /catppuccin-latte));
# };
2023-11-15 16:09:47 +00:00
2023-11-19 23:29:24 +00:00
# qt = {
# enable = true;
# style.name = "breeze";
# };
2023-11-15 16:09:47 +00:00
programs.firefox = {
enable = true;
profiles.default = { isDefault = true; };
};
programs.thunderbird = {
enable = true;
profiles.default = { isDefault = true; };
};
}