Initial flake commit

This commit is contained in:
2021-08-04 12:37:55 -07:00
parent 3b11040922
commit a5a6a02929
10 changed files with 122 additions and 46 deletions
+14 -4
View File
@@ -1,7 +1,7 @@
let target-version = "21.05";
in {
description = "A very basic flake";
description = "Fudo Host Configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-${target-version}";
@@ -20,10 +20,20 @@ in {
hosts = map hostname-from-file (attrNames (filterAttrs is-nix-file
(filterAttrs is-regular-file (builtins.readDir ./config/hosts))));
in {
nixConfigurations = mapAttrs (host: hostOpts:
lib.nixosSystem {
pkgs = import nixpkgs { };
in {
nixConfigurations = mapAttrs (hostname: hostOpts:
lib.nixosSystem {
inherit system;
modules = [
(import ./initialize.nix {
hostname = hostname;
home-manager-package = home-manager;
pkgs = pkgs;
include-secrets = true;
})
];
}) host-configs;
};
}