treewide: use nh from master instead of nixpkgs

This commit is contained in:
Nikodem Rabuliński 2025-05-01 22:37:04 +02:00
parent e89f83a559
commit 46e631c8c5
Signed by: nrabulinski
SSH key fingerprint: SHA256:AZZVyfKStaCo8sbJB+3Rr/CRrlym1oEgw7vMnynJeR8
5 changed files with 29 additions and 3 deletions

17
flake.lock generated
View file

@ -393,6 +393,22 @@
"type": "gitlab" "type": "gitlab"
} }
}, },
"nh": {
"flake": false,
"locked": {
"lastModified": 1746032033,
"narHash": "sha256-BCD0tfDNlQHFM75THRtXM3GegMg/KbREsYllg7Az9ao=",
"owner": "nix-community",
"repo": "nh",
"rev": "894bb7ebf3adb58f76d1f7d9f6b33f58758d40f0",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nh",
"type": "github"
}
},
"niko-nur": { "niko-nur": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
@ -522,6 +538,7 @@
"lix": "lix", "lix": "lix",
"lix-module": "lix-module", "lix-module": "lix-module",
"mailserver": "mailserver", "mailserver": "mailserver",
"nh": "nh",
"niko-nur": "niko-nur", "niko-nur": "niko-nur",
"nilla": "nilla", "nilla": "nilla",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",

View file

@ -91,5 +91,9 @@
url = "github:nilla-nix/nilla"; url = "github:nilla-nix/nilla";
flake = false; flake = false;
}; };
nh = {
url = "github:nix-community/nh";
flake = false;
};
}; };
} }

View file

@ -1,7 +1,6 @@
# TODO: Make this module not rely on OS config being present # TODO: Make this module not rely on OS config being present
{ {
osConfig, osConfig,
pkgs,
lib, lib,
inputs', inputs',
machineName, machineName,
@ -59,7 +58,6 @@ in
home.packages = [ home.packages = [
inputs'.settei.packages.base-packages inputs'.settei.packages.base-packages
pkgs.nh
]; ];
home.sessionVariables.EDITOR = "hx"; home.sessionVariables.EDITOR = "hx";

View file

@ -57,6 +57,7 @@
fish fish
git-commit-last git-commit-last
git-fixup git-fixup
nh
]; ];
} }
); );
@ -126,7 +127,7 @@
packages = [ packages = [
config.packages.agenix.result.${system} config.packages.agenix.result.${system}
config.packages.attic-client.result.${system} config.packages.attic-client.result.${system}
nh config.packages.nh.result.${system}
]; ];
}; };
}; };

View file

@ -69,4 +69,10 @@ in
builder = "custom-load"; builder = "custom-load";
package = { system }: atticPkgs.${system}.attic-server; package = { system }: atticPkgs.${system}.attic-server;
}; };
config.packages.nh = {
inherit systems builder;
package = import "${inputs.nh}/package.nix";
settings.args.rev = inputs.nh.shortRev;
};
} }