From d81d8298cea22de1d0c9604d6c77bf45b3a66961 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Mon, 1 Apr 2024 00:57:47 +0200 Subject: plymouth: init module --- modules/nixos/default.nix | 4 +++- modules/nixos/plymouth.nix | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 modules/nixos/plymouth.nix diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index d854dcc..a645a65 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -1,3 +1,5 @@ {...}: { - imports = []; + imports = [ + ./plymouth.nix + ]; } diff --git a/modules/nixos/plymouth.nix b/modules/nixos/plymouth.nix new file mode 100644 index 0000000..8e39220 --- /dev/null +++ b/modules/nixos/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