nixos-config/flake.nix

33 lines
804 B
Nix
Raw Normal View History

{
2021-08-04 12:37:55 -07:00
description = "Fudo Host Configuration";
2021-07-28 12:01:06 -07:00
2021-08-09 11:12:39 -07:00
inputs = {
nixpkgs.url = "nixpkgs/nixos-21.05";
2021-08-09 14:14:00 -07:00
hosts.url = "path:../fudo-hosts";
2021-08-09 11:12:39 -07:00
home-manager.url = "github:nix-community/home-manager/release-21.05";
2021-07-28 12:01:06 -07:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
2021-08-09 14:14:00 -07:00
outputs = { nixpkgs, hosts, home-manager, ... }:
2021-07-28 12:01:06 -07:00
let
2021-08-04 12:37:55 -07:00
pkgs = import nixpkgs { };
2021-08-09 14:14:00 -07:00
lib = nixpkgs.lib;
2021-08-04 12:37:55 -07:00
2021-07-28 12:01:06 -07:00
in {
2021-08-06 16:30:35 -07:00
nixConfigurations = lib.mapAttrs (hostname: hostOpts:
lib.nixosSystem {
2021-08-06 16:25:01 -07:00
system = hostOpts.platform;
2021-08-04 12:37:55 -07:00
modules = [
(import ./initialize.nix {
hostname = hostname;
home-manager-package = home-manager;
pkgs = pkgs;
include-secrets = true;
})
];
2021-08-09 14:14:00 -07:00
}) hosts.host-configs;
2021-07-28 12:01:06 -07:00
};
}