removed non-functional hyprland module in favour of a symlinked file
This commit is contained in:
@@ -10,14 +10,10 @@
|
||||
inputs',
|
||||
...
|
||||
}: {config, ...}: let
|
||||
modules = with self.nixosModules;
|
||||
[
|
||||
audio
|
||||
systemTheme
|
||||
]
|
||||
++ [
|
||||
inputs.hyprland.inputs.hyprland.nixosModules.default
|
||||
];
|
||||
modules = with self.nixosModules; [
|
||||
audio
|
||||
systemTheme
|
||||
];
|
||||
|
||||
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
|
||||
lib = pkgs.lib;
|
||||
@@ -38,16 +34,10 @@
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.hyprland =
|
||||
{
|
||||
enable = true;
|
||||
package = self'.packages.hyprland;
|
||||
}
|
||||
// lib.optionalAttrs config.hyprland.enablePlugins {
|
||||
plugins = with inputs'; [
|
||||
hyprgrass.packages.default
|
||||
];
|
||||
};
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = self'.packages.hyprland;
|
||||
};
|
||||
|
||||
services.displayManager.defaultSession = "hyprland";
|
||||
services.xserver.enable = true;
|
||||
@@ -65,10 +55,21 @@
|
||||
runtimePkgs)}
|
||||
'';
|
||||
|
||||
system.activationScripts.hyprConfig = lib.stringAfter ["specialfs"] ''
|
||||
mkdir -p /run/hypr/config
|
||||
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
||||
'';
|
||||
system.activationScripts.hyprConfig = let
|
||||
pluginFile = builtins.toFile "plugins.lua" ''
|
||||
hl.on("hyprland.start", function ()
|
||||
${lib.optionalString config.hyprland.enablePlugins ''
|
||||
hl.exec("hyprctl plugin load ${inputs'.hyprgrass.default}/lib/lib${inputs'.hyprgrass.default.pname}.so")
|
||||
''}
|
||||
end)
|
||||
'';
|
||||
in
|
||||
lib.stringAfter ["specialfs"] ''
|
||||
mkdir -p /run/hypr/config
|
||||
rm -rf /run/hypr/config/*
|
||||
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
||||
ln -sfn ${pluginFile} /run/hypr/config/plugins.lua
|
||||
'';
|
||||
};
|
||||
});
|
||||
perSystem = {
|
||||
|
||||
Reference in New Issue
Block a user