Working flake-based nixops config
This commit is contained in:
+5
-7
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user