Working flake-based nixops config

This commit is contained in:
2021-10-08 15:26:19 -07:00
parent 5a48c78b48
commit a323dbdd9c
7 changed files with 59 additions and 53 deletions
+5 -7
View File
@@ -1,5 +1,4 @@
{ hostname, site, domain, profile, build-timestamp, ... }:
{ config, lib, pkgs, ... }:
{ hostname, site, domain, profile, build-timestamp, config, lib, pkgs, ... }:
let
# Get info on this host so we know what to load
@@ -9,8 +8,6 @@ in {
imports = [
./lib
./config
#home-manager-module
(config-dir + /hardware/${hostname}.nix)
(config-dir + /host-config/${hostname}.nix)
@@ -21,9 +18,10 @@ in {
config = {
instance = {
inherit hostname site domain profile build-timestamp;
inherit hostname build-timestamp;
local-site = site;
local-domain = domain;
local-profile = profile;
};
nixpkgs.pkgs = pkgs;
};
}