remove home suites

This commit is contained in:
xunuwu 2025-06-06 11:15:32 +02:00
parent 40b0d84f53
commit 2c475dd099
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
63 changed files with 163 additions and 198 deletions

View file

@ -0,0 +1,12 @@
{inputs, ...}: {
imports = [inputs.nix-index-database.hmModules.nix-index];
programs = {
nix-index-database.comma.enable = true;
nix-index = {
enableBashIntegration = false;
enableFishIntegration = false;
enableZshIntegration = false;
};
};
}

View file

@ -0,0 +1,7 @@
{
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
}

View file

@ -0,0 +1,28 @@
{
config,
pkgs,
...
}: {
programs.git = {
enable = true;
delta.enable = true;
lfs.enable = true;
ignores = ["*~" ".direnv"];
signing = {
key = "${config.home.homeDirectory}/.ssh/id_ed25519";
signByDefault = true;
};
extraConfig = {
gpg.format = "ssh";
push.autoSetupRemote = true;
pull.rebase = true;
rebase.autostash = true;
};
userEmail = "xunuwu@gmail.com";
userName = "xunuwu";
};
}

View file

@ -0,0 +1,4 @@
{
programs.gh.enable = true;
programs.gh-dash.enable = true;
}

View file

@ -0,0 +1,22 @@
{pkgs, ...}: {
programs.irssi = {
enable = true;
networks = {
liberachat = {
nick = "wheat";
server = {
address = "irc.libera.chat";
port = 6697;
autoConnect = true;
};
channels = {
nixos.autoJoin = false;
};
};
};
};
home.file.".irssi/default.theme".source = pkgs.fetchurl {
url = "https://irssi-import.github.io/themes/h3rbz.theme";
hash = "sha256-2nB+jvDXPgkMXTd6f305R2aBt/D4kbsIGbqcIllHADo=";
};
}

View file

@ -0,0 +1,16 @@
{config, ...}: {
programs.jujutsu = {
enable = true;
settings = {
user = {
email = config.programs.git.userEmail;
name = config.programs.git.userName;
};
signing = {
behavior = "own";
backend = "ssh";
key = config.programs.git.signing.key;
};
};
};
}

View file

@ -0,0 +1,24 @@
{
programs.tmux = {
enable = true;
baseIndex = 1;
clock24 = true;
mouse = true;
escapeTime = 0;
extraConfig = ''
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}";
set -g status-style bg=default
setw -g window-status-current-style fg=#be95ff
set -g status-justify absolute-centre
set -g status-interval 5
set -g status-right "#[fg=#25be6a]#(free -h | awk 'NR==2{print $3\"/\"$2}')"
set -ag status-right "#[fg=default] %a %d %b %H:%M"
set-option -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
'';
};
}

View file

@ -0,0 +1,29 @@
# TODO: move this somewhere more reasonable
{
config,
pkgs,
...
}: let
home = config.home.homeDirectory;
in {
xdg = {
enable = true;
cacheHome = config.home.homeDirectory + "/.local/cache";
userDirs = {
enable = true;
desktop = home + "/desktop";
documents = home + "/docs";
download = home + "/down";
music = home + "/music";
pictures = home + "/pics";
publicShare = home + "/share";
videos = home + "/vids";
extraConfig = {
XDG_SCREENSHOTS_DIR = config.xdg.userDirs.pictures + "/screenshots";
};
};
};
home.packages = [pkgs.xdg-utils];
}