fix: reduce size by only installing needed progs
Some checks failed
/ check (nvimDev) (push) Successful in 6s
/ check (nvimHeadless) (push) Successful in 3s
/ check (nvimNoBundledBins) (push) Successful in 7s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 7s
/ check (treefmt) (push) Successful in 3s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Failing after 3s
/ build (nvim) (push) Successful in 2s
/ report-size (push) Has been skipped

- Only install gopass if password-store is enabled
- Only install gitoxide if dev config is enabled
- Don't install sshfs, haven't used it _ever_ (on NixOS)
This commit is contained in:
Jalil David Salamé Messina 2025-02-16 23:57:28 +01:00
parent 5563238f0a
commit 107ffba42c
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 4 additions and 5 deletions

View file

@ -37,6 +37,9 @@ in
};
})
(lib.mkIf cfg.enable {
# Add gopass if pass is enabled
packages = lib.optional config.programs.password-store.enable pkgs.gopass;
nix.settings.use-xdg-base-directories = fromOs [
"nix"
"settings"
@ -113,11 +116,6 @@ in
home = {
stateVersion = "22.11";
# Extra packages
packages = [
pkgs.gopass
pkgs.sshfs
pkgs.unstable.gitoxide
];
# Extra variables
sessionVariables = {
CARGO_HOME = "${config.xdg.dataHome}/cargo";

View file

@ -199,6 +199,7 @@ in
[ "typos" ] # low false positive rate typo checker
[ "gcc" ] # GNU Compiler Collection
[ "git-absorb" ] # fixup! but automatic
[ "gitoxide" ] # git but RiiR
[ "man-pages" ] # gimme the man pages
[ "man-pages-posix" ] # I said gimme the man pages!!!
];