fixed hyprland config getting garbage collected
This commit is contained in:
@@ -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}
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user