Skip to content

Commit

Permalink
feat: use nh unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Jan 14, 2025
1 parent bce7546 commit 8c9d617
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

16 changes: 14 additions & 2 deletions modules/base/nix/nh.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{ config, ... }:
{
lib,
config,
inputs',
...
}:
{
programs.nh = {
enable = true;
package = inputs'.beapkgs.packages.nh;

clean = {
enable = !config.nix.gc.automatic;
Expand All @@ -12,5 +18,11 @@
# WARNING: this leaves you without commands like `nixos-rebuild` which you don't
# really need, you may consider enabling nh and using `nh os switch` instead
# which is actually a really good alternative to using this
system.disableInstallerTools = config.programs.nh.enable;
system =
{
disableInstallerTools = config.programs.nh.enable;
}
// lib.attrsets.optionalAttrs (config.system ? tools) {
tools.nixos-version.enable = true;
};
}

0 comments on commit 8c9d617

Please sign in to comment.