Pin hosts on urithiru for less building

This commit is contained in:
Charlotte Van Petegem 2021-04-22 09:59:33 +02:00
parent 9748828573
commit 3cec90e553
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 8 additions and 4 deletions

6
flake.lock generated
View file

@ -53,11 +53,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1618967915,
"narHash": "sha256-+BYz6ihIzBDcXFTrPxBibQX0PYXjK42JX5XA6SFMxiI=",
"lastModified": 1619060385,
"narHash": "sha256-4y/QSlmyIsMYP+g1mnZaBUTDED07wHPhtBdCjEnk0/A=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5bc2962319ca6ccbd0033c95d3e00c9fde1b67ff",
"rev": "f2a3a0edab77d4c5cf67436912970e85a5c77b19",
"type": "github"
},
"original": {

View file

@ -30,6 +30,7 @@
home-manager.nixosModules.home-manager
./modules
];
extraArgs = { nixosConfigurations = self.nixosConfigurations; };
};
hosts = {
kharbranth.modules = [ ./machines/kharbranth ];

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ lib, pkgs, nixosConfigurations, ... }:
{
imports = [
@ -11,6 +11,9 @@
networking.hostId = "079e60ba";
environment.etc = lib.mapAttrs' (n: v: { name = "pinned-hosts/${n}"; value = { source = v.config.system.build.toplevel.outPath; }; })
(lib.filterAttrs (n: _: n != "urithiru") nixosConfigurations);
chvp = {
stateVersion = "20.09";
accentor.enable = true;