adding symlink farm for hyprland launching

This commit is contained in:
2026-07-11 12:40:36 +01:00
parent 1a70f20213
commit e77cb49ffc
2 changed files with 19 additions and 4 deletions

View File

@@ -7,24 +7,39 @@
flake.nixosModules.hyprland = moduleWithSystem ({
self',
pkgs,
system,
...
}: let
modules = with self.nixosModules; [
audio
systemTheme
];
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
lib = pkgs.lib;
in {
imports = modules;
programs.hyprland = {
enable = true;
package = self'.packages.hyprland;
portalPackage = inputs.hyprland.inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
};
services.xserver.enable = true;
security.polkit.enable = true;
environment.systemPackages = with pkgs; [
hyprlock
gsettings-desktop-schemas
];
system.activationScripts.hyprRuntimeEnv = lib.stringAfter ["specialfs"] ''
mkdir -p /run/hypr-runtime-env/bin
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: pkg: ''
ln -sfn ${lib.getExe pkg} /run/hypr-runtime-env/bin/${name}
'')
runtimePkgs)}
'';
});
perSystem = {
self',