Initial flake commit
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user