made togglable plugins option for mobile03
This commit is contained in:
@@ -10,9 +10,13 @@
|
|||||||
inputs',
|
inputs',
|
||||||
...
|
...
|
||||||
}: {config, ...}: let
|
}: {config, ...}: let
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules;
|
||||||
|
[
|
||||||
audio
|
audio
|
||||||
systemTheme
|
systemTheme
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
inputs.hyprland.inputs.hyprland.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
|
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
|
||||||
@@ -24,9 +28,26 @@
|
|||||||
else lib.getExe pkg;
|
else lib.getExe pkg;
|
||||||
in {
|
in {
|
||||||
imports = modules;
|
imports = modules;
|
||||||
programs.hyprland = {
|
|
||||||
|
options = {
|
||||||
|
hyprland.enablePlugins = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable plugins, basically just touchscreen support";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
programs.hyprland =
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
package = self'.packages.hyprland;
|
package = self'.packages.hyprland;
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs config.hyprland.enablePlugins {
|
||||||
|
plugins = with pkgs.hyprlandPlugins; [
|
||||||
|
hyprspace
|
||||||
|
hyprgrass
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.displayManager.defaultSession = "hyprland";
|
services.displayManager.defaultSession = "hyprland";
|
||||||
@@ -49,6 +70,7 @@
|
|||||||
mkdir -p /run/hypr/config
|
mkdir -p /run/hypr/config
|
||||||
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
});
|
});
|
||||||
perSystem = {
|
perSystem = {
|
||||||
self',
|
self',
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
intelDrivers
|
intelDrivers
|
||||||
development
|
development
|
||||||
upower
|
upower
|
||||||
|
({...}: {
|
||||||
|
hyprland.enablePlugins = true;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user