2019-12-17 15:56:02 -07:00
|
|
|
{ home, nixpkgs, flake, ... }:
|
2019-12-04 22:36:36 -07:00
|
|
|
let
|
2019-12-15 01:23:19 -07:00
|
|
|
utils = import ../lib/utils.nix { lib = nixpkgs.lib; };
|
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
inherit (utils)
|
2019-12-21 19:02:22 -07:00
|
|
|
recImport
|
2019-12-04 22:36:36 -07:00
|
|
|
;
|
|
|
|
|
2019-12-30 18:00:09 -07:00
|
|
|
inherit (builtins)
|
|
|
|
attrValues
|
|
|
|
;
|
|
|
|
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
config = self:
|
|
|
|
nixpkgs.lib.nixosSystem rec {
|
|
|
|
system = "x86_64-linux";
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
modules = let
|
|
|
|
core = ../profiles/core.nix;
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
global = {
|
|
|
|
networking.hostName = self;
|
2019-12-15 21:36:05 -07:00
|
|
|
nix.nixPath = [
|
|
|
|
"nixpkgs=${nixpkgs}"
|
|
|
|
"nixos-config=/etc/nixos/configuration.nix"
|
|
|
|
];
|
2019-12-15 01:08:22 -07:00
|
|
|
system.configurationRevision = flake.rev;
|
2019-12-30 17:45:30 -07:00
|
|
|
|
|
|
|
nixpkgs.overlays = flake.overlays;
|
2019-12-04 22:36:36 -07:00
|
|
|
};
|
|
|
|
|
2019-12-21 19:02:22 -07:00
|
|
|
local = import "${toString ./.}/${self}.nix";
|
2020-01-01 19:12:59 -07:00
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
in
|
2019-12-30 18:00:09 -07:00
|
|
|
attrValues flake.nixosModules ++ [
|
2019-12-13 21:30:43 -07:00
|
|
|
core
|
|
|
|
global
|
|
|
|
local
|
2019-12-15 01:35:12 -07:00
|
|
|
home
|
2019-12-13 21:30:43 -07:00
|
|
|
];
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2019-12-13 21:30:43 -07:00
|
|
|
};
|
2019-12-17 16:03:44 -07:00
|
|
|
|
2019-12-21 18:39:19 -07:00
|
|
|
hosts =
|
2019-12-21 19:02:22 -07:00
|
|
|
recImport { dir = ./.; _import = config; };
|
2019-12-04 22:36:36 -07:00
|
|
|
in
|
2019-12-21 18:39:19 -07:00
|
|
|
hosts
|