Add fudo-pkgs submodule

This commit is contained in:
2021-09-07 15:39:45 -07:00
parent e52b959613
commit f01a4931a9
14 changed files with 77 additions and 311 deletions
+7 -7
View File
@@ -1,18 +1,16 @@
{ hostname, home-manager-package, pkgs, fudo-pkgs, include-secrets ? true, ... }:
{ hostname, home-manager-module, pkgs, include-secrets ? true, ... }:
let
# Get info on this host so we know what to load
host-config = import (./. + "/config/hosts/${hostname}.nix");
in {
in {
imports = [
./lib
./config
# Without turning this into a path, there's a "lastModified missing" error
"${fudo-pkgs}/"
"${home-manager-package}/nixos"
] ++ [
home-manager-module
(./. + "/config/hardware/${hostname}.nix")
(./. + "/config/host-config/${hostname}.nix")
(./. + "/config/profile-config/${host-config.profile}.nix")
@@ -23,6 +21,8 @@ in {
config = {
instance = { hostname = hostname; };
nixpkgs.pkgs = pkgs;
fudo.secrets.enable = include-secrets;
};
}