mirror of
https://github.com/blahai/nyx.git
synced 2025-06-24 23:27:00 -04:00
All this just to get nyx to even build
This commit is contained in:
parent
ed1aafe645
commit
fdfd4e0434
24 changed files with 2272 additions and 0 deletions
24
modules/nixos/boot/plymouth.nix
Normal file
24
modules/nixos/boot/plymouth.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.meta) getExe';
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
cfg = config.olympus.system.boot.plymouth;
|
||||
in {
|
||||
options.olympus.system.boot.plymouth.enable = mkEnableOption "plymouth boot splash";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.plymouth.enable = true;
|
||||
|
||||
# make plymouth work with sleep
|
||||
powerManagement = {
|
||||
powerDownCommands = "${getExe' pkgs.plymouth "plymouth"} --show-splash";
|
||||
resumeCommands = "${getExe' pkgs.plymouth "plymouth"} --quit";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue