1

Nixos: Cleanup modules

This commit is contained in:
2024-10-11 22:09:58 +02:00
parent b297eb310e
commit 539020f04c
3 changed files with 33 additions and 51 deletions

View File

@ -6,8 +6,9 @@
lib,
mylib,
pkgs,
nixosConfig,
...
} @ inputs: let
}: let
cfg = config.modules.hyprland;
in {
options.modules.hyprland = import ./options.nix {inherit lib mylib;};
@ -17,7 +18,7 @@ in {
{
# This assertion is not possible if HM is used standalone,
# because nixosConfig won't be available.
assertion = inputs.nixosConfig.programs.hyprland.enable;
assertion = nixosConfig.programs.hyprland.enable;
message = "Can't enable Hyprland module with Hyprland disabled!";
}
];