adding symlink farm for hyprland launching
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -373,11 +373,11 @@
|
||||
"wshowkeys": "wshowkeys"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1783762991,
|
||||
"narHash": "sha256-9qyKPHXc2fK6oZxCXLV9q0WdyNYdgCpfiAouRf+ELrc=",
|
||||
"lastModified": 1783770011,
|
||||
"narHash": "sha256-U+RNUy0UjDgAMIiAVZCJRmtcriGAE4tqOkprvs2/nE4=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "9f0f7846c04d8abe0e0a7571d9eadc4749ac910e",
|
||||
"revCount": 43,
|
||||
"rev": "45818e93959b636b27910689f29cb640da88c8b9",
|
||||
"revCount": 44,
|
||||
"type": "git",
|
||||
"url": "https://git.voidarc.co.uk/voidarc/hypr"
|
||||
},
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user