forked from Fachschaft/nixConfig
initial flake structure
This commit is contained in:
parent
1e08f75773
commit
22736986f6
5 changed files with 190 additions and 0 deletions
16
nixos/flake-module.nix
Normal file
16
nixos/flake-module.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
# copied and adopted from maralorns config
|
||||
{ withSystem, lib, inputs, ... }: {
|
||||
flake = {
|
||||
nixosConfigurations = withSystem "x86_64-linux" ({ pkgs, ... }:
|
||||
let
|
||||
machines = builtins.attrNames (builtins.readDir ./machines);
|
||||
makeSystem = name:
|
||||
pkgs.nixos {
|
||||
imports = [
|
||||
(import (./. + "/machines/${name}/configuration.nix") inputs)
|
||||
# inputs.secrets.nixosModules.default
|
||||
];
|
||||
};
|
||||
in lib.genAttrs machines makeSystem);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue