Update greeter.nix
This commit is contained in:
parent
d9039467b2
commit
b65beb218d
|
|
@ -1,19 +1,16 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
rosePineHyprcursor = pkgs.callPackage ../../home-manager/hyprland/rose-pine-hyprcursor.nix { };
|
||||
monitorConf = lib.concatMapStrings (m: "monitor = ${m}\n") config.cornflake.greeter.monitors;
|
||||
hyprGreetConf = pkgs.writeText "hyprland-greetd.conf" ''
|
||||
monitor = DP-1, 5120x2880@60, 0x0, 2
|
||||
|
||||
monitor = DP-2, disable
|
||||
monitor = DP-3, disable
|
||||
|
||||
${monitorConf}
|
||||
env = HYPRCURSOR_THEME,rose-pine-hyprcursor
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
env = XCURSOR_SIZE,24
|
||||
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland"
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
|
||||
general {
|
||||
border_size = 0
|
||||
|
|
@ -33,6 +30,13 @@ let
|
|||
'';
|
||||
in
|
||||
{
|
||||
options.cornflake.greeter.monitors = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ ];
|
||||
description = "greetd セッション用 Hyprland の monitor 設定";
|
||||
};
|
||||
|
||||
config = {
|
||||
services.greetd.enable = true;
|
||||
services.greetd.settings.default_session = {
|
||||
command = "${pkgs.hyprland}/bin/start-hyprland -- -c ${hyprGreetConf}";
|
||||
|
|
@ -69,4 +73,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user