chore: organize dotfiles stowed by home-manager

This commit is contained in:
TheGeneralist 2025-06-23 09:21:16 +02:00
parent d82367b7ee
commit c8783b2c52
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
40 changed files with 32 additions and 59 deletions

View file

@ -18,11 +18,14 @@
in [ thegeneralist ]; in [ thegeneralist ];
}; };
programs.home-manager.enable = true;
home-manager = { home-manager = {
backupFileExtension = "home.bak"; backupFileExtension = "home.bak";
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users.thegeneralist.home = {
thegeneralist = import (self + /modules/home); username = "thegeneralist";
homeDirectory = "/home/thegeneralist";
stateVersion = "25.11";
}; };
}; };

View file

@ -18,11 +18,14 @@
in [ thegeneralist ]; in [ thegeneralist ];
}; };
programs.home-manager.enable = true;
home-manager = { home-manager = {
backupFileExtension = "home.bak"; backupFileExtension = "home.bak";
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users.thegeneralist.home = {
thegeneralist = import (self + /modules/home); username = "thegeneralist";
homeDirectory = "/home/thegeneralist";
stateVersion = "25.11";
}; };
}; };

View file

@ -27,13 +27,13 @@ in {
home.file = { home.file = {
".config/nvim" = { ".config/nvim" = {
source = ../home/dotfiles/nvim; source = ../dotfiles/nvim;
force = true; force = true;
recursive = true; recursive = true;
}; };
} // optionalAttrs config.onLinux { } // optionalAttrs config.onLinux {
".config/i3status" = { ".config/i3status" = {
source = ../home/dotfiles/i3status; source = ../dotfiles/i3status;
force = true; force = true;
recursive = true; recursive = true;
}; };

View file

@ -12,6 +12,25 @@ in {
gcc gcc
gnumake gnumake
automake automake
zip
xz
unzip
mtr
iperf3
dnsutils
ldns
nmap
file
which
tree
gnupg
btop
pciutils
usbutils
; ;
}; };
} }

View file

@ -1,52 +0,0 @@
{ config, options, pkgs, inputs, lib, ... }: {
home.username = "thegeneralist";
home.homeDirectory = if options.onLinux then "/home/thegeneralist" else "/Users/thegeneralist";
home.packages = with pkgs; [
zip
xz
unzip
mtr
iperf3
dnsutils
ldns
nmap
file
which
tree
gnupg
btop
pciutils
usbutils
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
];
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
# or
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
# or
# /etc/profiles/per-user/thegeneralist/etc/profile.d/hm-session-vars.sh
home.stateVersion = "24.11";
programs.home-manager.enable = true;
}

View file

@ -28,7 +28,7 @@ in {
windowManager.i3 = optionalAttrs (!config.isServer) { windowManager.i3 = optionalAttrs (!config.isServer) {
enable = true; enable = true;
package = pkgs.i3; package = pkgs.i3;
configFile = ../home/dotfiles/i3/config; configFile = ../dotfiles/i3/config;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
i3 i3