❄️ Dotfiles and NixOS configurations
1{
2 config,
3 inputs,
4 ...
5}: {
6 _module.args.lib' = {
7 mkHost = {
8 hostName,
9 attrName ? hostName,
10 modules,
11 }: {
12 "${attrName}" = inputs.nixpkgs.lib.nixosSystem {
13 modules =
14 [
15 {networking = {inherit hostName;};}
16 ]
17 ++ modules;
18
19 specialArgs = {
20 inherit inputs;
21 fpConfig = config;
22 };
23 };
24 };
25 mkDeploy = {
26 targetHost,
27 extraFlags,
28 }: {
29 _module.args.deploy = {
30 inherit targetHost extraFlags;
31 };
32 };
33 };
34}