niksos/hosts/chmura/home-manager.nix
jacekpoz 59febb2149
move the config' arg to a custom module (big)
shoutout to raf for pointing out how retarded this was
this was needed very much
2024-02-29 00:29:56 +01:00

69 lines
1.7 KiB
Nix

{
config,
lib,
inputs,
pkgs,
self,
...
}: let
username = config.myOptions.other.system.username;
in {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = {inherit inputs self;};
users.${username} = {
programs = {
home-manager.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
home = {
inherit username;
homeDirectory = "/home/${username}";
packages = with pkgs; [
git
eza
ripgrep
unzip
trash-cli
dig
xdg-ninja
auto-cpufreq
gnupg
age
fd
asciinema
asciinema-agg
du-dust
file
hyfetch
git-annex
croc
uutils-coreutils
imagemagick
psmisc
nnn
jq
fq
gnumake
gdb
tea
codeberg-cli
progress
parallel
p7zip
xxd
lshw
tree
smartmontools
];
stateVersion = lib.mkDefault "23.11";
};
};
};
}