mirror of
https://github.com/RGBCube/ncc
synced 2025-07-31 12:07:48 +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
|
||||
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 {
|
||||
systemConfiguration {
|
||||
services.greetd = enabled {
|
||||
settings.default_session = {
|
||||
command = "${hyprlandBin}/Hyprland --config ${hyprlandConfig}";
|
||||
command = "${pkgs.cage}/bin/cage -sd ${pkgs.greetd.gtkgreet}/bin/gtkgreet";
|
||||
user = "nixos";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue