blob: 8fc4dcef4a63ae2a8e39c62366135354ff1bfffe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ self, inputs, lib, pkgs, ... }:
with lib;
with lib.my;
{
mkSystem = path: attrs @ { ... }: {
imports = [
{
networking.hostName = mkDefault
(removeSuffix ".nix" (baseNameOf path));
system.configurationRevision = self.rev or "dirty";
}
../. # /default.nix
(import path)
];
};
mapSystems = dir: attrs @ { system ? system, ... }:
mapModules dir
(hostPath: mkSystem hostPath attrs);
}
|