From 0e9d61723dc1882a3893c0296ae07f4f0b625a41 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 2 Apr 2024 17:23:42 +0200 Subject: refactor(modules): use collision avoiding tree --- modules/nixos/default.nix | 2 +- modules/nixos/plymouth.nix | 12 ------------ modules/nixos/sils/default.nix | 5 +++++ modules/nixos/sils/plymouth.nix | 12 ++++++++++++ 4 files changed, 18 insertions(+), 13 deletions(-) delete mode 100644 modules/nixos/plymouth.nix create mode 100644 modules/nixos/sils/default.nix create mode 100644 modules/nixos/sils/plymouth.nix (limited to 'modules') diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index a645a65..2d05002 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,5 +1,5 @@ {...}: { imports = [ - ./plymouth.nix + ./sils ]; } diff --git a/modules/nixos/plymouth.nix b/modules/nixos/plymouth.nix deleted file mode 100644 index 8e39220..0000000 --- a/modules/nixos/plymouth.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.sils.plymouth; -in { - options.sils.plymouth.enable = lib.mkEnableOption "Enable Plymouth"; - config = lib.mkIf cfg.enable { - boot.plymouth.enable = true; - }; -} diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix new file mode 100644 index 0000000..a645a65 --- /dev/null +++ b/modules/nixos/sils/default.nix @@ -0,0 +1,5 @@ +{...}: { + imports = [ + ./plymouth.nix + ]; +} diff --git a/modules/nixos/sils/plymouth.nix b/modules/nixos/sils/plymouth.nix new file mode 100644 index 0000000..8e39220 --- /dev/null +++ b/modules/nixos/sils/plymouth.nix @@ -0,0 +1,12 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.plymouth; +in { + options.sils.plymouth.enable = lib.mkEnableOption "Enable Plymouth"; + config = lib.mkIf cfg.enable { + boot.plymouth.enable = true; + }; +} -- cgit 1.4.1