Skip to content

Commit

Permalink
feat(nh): added nix build wrapper to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Nov 2, 2024
1 parent 6683e3f commit c92e3d1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
activate:
nh os switch -H pc .
36 changes: 18 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rec {
auto-optimise-store = true;
};
gc = {
automatic = true;
automatic = !programs.nh.enable;
dates = "weekly";
options = "--delete-older-than 7d";
};
Expand Down Expand Up @@ -174,6 +174,13 @@ rec {
};

programs = {
nh = {
enable = true;
clean = {
enable = true;
extraArgs = nix.gc.options;
};
};
fish.enable = true;
file-roller.enable = true; # Archive explorer
evince.enable = true; # PDF viever
Expand Down Expand Up @@ -277,7 +284,7 @@ rec {
neovim.wittano.enable = true;

fish.shellAliases = {
re = "sudo nixos-rebuild switch --flake ${environment.variables.NIX_DOTFILES}#${hostname}";
re = "nh os switch ${environment.variables.NIX_DOTFILES}";
# Projects
pnix = "cd $HOME/nix-dotfiles";
plab = "cd $HOME/projects/server/home-lab";
Expand Down

0 comments on commit c92e3d1

Please sign in to comment.