mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
refactor: dynamic module generation
This commit is contained in:
parent
c5042ac840
commit
5753eb1e11
7 changed files with 14 additions and 110 deletions
|
|
@ -1,11 +1,5 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
moduleNames = [
|
||||
"wallpaper"
|
||||
"hardware"
|
||||
"setup"
|
||||
"server"
|
||||
"input"
|
||||
];
|
||||
moduleNames = lib.swarselsystems.readNix "modules/nixos";
|
||||
in
|
||||
lib.swarselsystems.mkModules moduleNames "nixos"
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.swarselsystems.isBtrfs = lib.mkEnableOption "use btrfs filesystem";
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.swarselsystems.impermanence = lib.mkEnableOption "use impermanence on this system";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue