mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
18
diskoConfigurations/_default.nix
Normal file
18
diskoConfigurations/_default.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
inputs:
|
||||
let
|
||||
inherit (inputs.unstable) lib;
|
||||
in
|
||||
lib.pipe ./. [
|
||||
builtins.readDir
|
||||
(lib.filterAttrs (n: v: v == "regular" && lib.hasSuffix ".nix" n && n != "_default.nix"))
|
||||
builtins.attrNames
|
||||
(map (x: {
|
||||
name = lib.pipe x [
|
||||
(lib.removeSuffix (toString ./.))
|
||||
(lib.removeSuffix ".nix")
|
||||
(x: "disko-${x}")
|
||||
];
|
||||
value.disko.devices = import "${./.}/${x}" lib;
|
||||
}))
|
||||
builtins.listToAttrs
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue