made hyprland default session for display manager
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
audio
|
audio
|
||||||
systemTheme
|
systemTheme
|
||||||
];
|
];
|
||||||
|
|
||||||
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
|
runtimePkgs = self'.packages.hyprland.passthru.runtimePackages;
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
|
|
||||||
@@ -27,12 +28,16 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = self'.packages.hyprland;
|
package = self'.packages.hyprland;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.displayManager.defaultSession = "hyprland";
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
security.polkit.enable = true;
|
security.polkit.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
hyprlock
|
hyprlock
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
];
|
];
|
||||||
|
|
||||||
system.activationScripts.hyprRuntimeEnv = lib.stringAfter ["specialfs"] ''
|
system.activationScripts.hyprRuntimeEnv = lib.stringAfter ["specialfs"] ''
|
||||||
mkdir -p /run/hypr-runtime-env/bin
|
mkdir -p /run/hypr-runtime-env/bin
|
||||||
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: pkg: ''
|
${lib.concatStringsSep "\n" (lib.mapAttrsToList (name: pkg: ''
|
||||||
@@ -40,6 +45,7 @@
|
|||||||
'')
|
'')
|
||||||
runtimePkgs)}
|
runtimePkgs)}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.activationScripts.hyprConfig = lib.stringAfter ["specialfs"] ''
|
system.activationScripts.hyprConfig = lib.stringAfter ["specialfs"] ''
|
||||||
mkdir -p /run/hypr/config
|
mkdir -p /run/hypr/config
|
||||||
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
ln -sfn ${inputs'.hyprland.packages.repo-files}/* /run/hypr/config
|
||||||
@@ -54,7 +60,7 @@
|
|||||||
packages = {
|
packages = {
|
||||||
hyprland = inputs'.hyprland.packages.default.override {
|
hyprland = inputs'.hyprland.packages.default.override {
|
||||||
flags."--config" = "/run/hypr/config/hyprland.lua";
|
flags."--config" = "/run/hypr/config/hyprland.lua";
|
||||||
env."MODULES_ROOT" = "/run/hypr/config/modules";
|
env."MODULES_ROOT" = "/run/hypr/config/modules";
|
||||||
runtimePackages =
|
runtimePackages =
|
||||||
inputs.hyprland.lib.defaultRuntimePkgs.${system}
|
inputs.hyprland.lib.defaultRuntimePkgs.${system}
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user