fixed hyprland config getting garbage collected

This commit is contained in:
2026-07-13 12:18:04 +01:00
parent 9d20805a2b
commit 44b51bf454
3 changed files with 27 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
flake.nixosModules.hyprland = moduleWithSystem ({
self',
pkgs,
inputs',
...
}: {config, ...}: let
modules = with self.nixosModules; [
@@ -39,6 +40,10 @@
'')
runtimePkgs)}
'';
system.activationScripts.hyprConfig = lib.stringAfter ["specialfs"] ''
mkdir -p /run/hypr/config
ln -sfn ${inputs.hyprland-config}/* /run/hypr/config
'';
});
perSystem = {
self',
@@ -48,6 +53,7 @@
}: {
packages = {
hyprland = inputs'.hyprland.packages.default.override {
flags."--config" = "/run/hypr/config/hyprland.lua";
runtimePackages =
inputs.hyprland.lib.defaultRuntimePkgs.${system}
// {