mirror of
https://github.com/RGBCube/ncc
synced 2025-08-01 12:37:46 +00:00
Use cage
This commit is contained in:
parent
d215664635
commit
6ded385f22
1 changed files with 3 additions and 28 deletions
|
@ -1,34 +1,9 @@
|
||||||
{ pkgs, upkgs, systemConfiguration, enabled, ... }:
|
{ pkgs, systemConfiguration, enabled, ... }:
|
||||||
|
|
||||||
let
|
systemConfiguration {
|
||||||
hyprlandBin = "${upkgs.hyprland}/bin";
|
|
||||||
|
|
||||||
hyprlandConfig = pkgs.writeText "hyprland.conf" ''
|
|
||||||
animations {
|
|
||||||
enabled = 0
|
|
||||||
first_launch_animation = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
input {
|
|
||||||
kb_layout = tr
|
|
||||||
}
|
|
||||||
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
workspace = 1, default: true, gapsout: 0, gapsin: 0, border: false, decorate: false
|
|
||||||
|
|
||||||
exec-once = systemctl --user stop waybar.service
|
|
||||||
|
|
||||||
exec-once = [workspace 1; fullscreen; noanim] ${pkgs.greetd.gtkgreet}/bin/gtkgreet --layer-shell --command Hyprland; ${hyprlandBin}}/bin/hyprctl dispatch exit
|
|
||||||
|
|
||||||
exec-once = ${hyprlandBin}/bin/hyprctl dispatch focuswindow gtkgreet
|
|
||||||
'';
|
|
||||||
in systemConfiguration {
|
|
||||||
services.greetd = enabled {
|
services.greetd = enabled {
|
||||||
settings.default_session = {
|
settings.default_session = {
|
||||||
command = "${hyprlandBin}/Hyprland --config ${hyprlandConfig}";
|
command = "${pkgs.cage}/bin/cage -sd ${pkgs.greetd.gtkgreet}/bin/gtkgreet";
|
||||||
user = "nixos";
|
user = "nixos";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue