From 4d470acfad029fceb2776f500c982c36be34efe3 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 28 Jul 2025 23:52:12 +0100 Subject: [PATCH] Enable nh --- justfile | 5 ++--- modules2/nix/utils.nix | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 modules2/nix/utils.nix diff --git a/justfile b/justfile index a5e93ac4..1e028c6c 100644 --- a/justfile +++ b/justfile @@ -13,8 +13,7 @@ check: nix flake check clean: - nix store optimise --verbose - nix store gc --verbose + nh clean all collect-garbage: nix-collect-garbage -d @@ -33,4 +32,4 @@ update: nix flake update _nixos command *args: - sudo nixos-rebuild {{ command }} --flake . {{ args }} + nh os {{ command }} . {{ args }} diff --git a/modules2/nix/utils.nix b/modules2/nix/utils.nix new file mode 100644 index 00000000..9793b4b8 --- /dev/null +++ b/modules2/nix/utils.nix @@ -0,0 +1,3 @@ +{ + flake.modules.homeManager.base.programs.nh.enable = true; +}