Nix modules: fix imports

This commit is contained in:
Mihai Fufezan 2022-09-03 02:20:20 +03:00
parent 0ea96e87c0
commit eee0cad4d0
No known key found for this signature in database
GPG key ID: 5899325F2F120900
2 changed files with 12 additions and 13 deletions

View file

@ -8,6 +8,10 @@ self: {
with lib; let
cfg = config.programs.hyprland;
in {
imports = [
(mkRemovedOptionModule ["programs" "hyprland" "extraPackages"] "extraPackages has been removed. Use environment.systemPackages instead.")
];
options.programs.hyprland = {
enable = mkEnableOption ''
Hyprland, the dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
@ -26,10 +30,6 @@ in {
Hyprland package to use.
'';
};
imports = [
(mkRemovedOptionModule ["programs" "hyprland" "extraPackages"] "extraPackages has been removed. Use environment.systemPackages instead.")
];
};
config = mkIf cfg.enable {