This commit is contained in:
Noa Aarts 2024-11-20 21:27:19 +01:00
parent 46c552076e
commit d00f06890e
Signed by: noa
GPG key ID: 1850932741EFF672
3 changed files with 6 additions and 8 deletions

View file

@ -82,14 +82,12 @@ in
''; '';
}; };
preferXdgDirectories = true; preferXdgDirectories = true;
sessionVariables = lib.mkMerge [ sessionVariables =
{ {
EDITOR = "nvim"; EDITOR = "nvim";
TERM = "kitty"; TERM = "kitty";
} }
lib.mkIf // lib.mkIf enableGraphical {
enableGraphical
{
DISPLAY = ":0"; DISPLAY = ":0";
GDK_BACKEND = "wayland,x11"; GDK_BACKEND = "wayland,x11";
QT_QPA_PLATFORM = "wayland;xcb"; QT_QPA_PLATFORM = "wayland;xcb";
@ -98,8 +96,7 @@ in
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
XDG_SESSION_DESKTOP = "niri"; XDG_SESSION_DESKTOP = "niri";
WLR_NO_HARDWARE_CURSORS = "1"; WLR_NO_HARDWARE_CURSORS = "1";
} };
];
stateVersion = "23.11"; # Do not change :3 stateVersion = "23.11"; # Do not change :3
username = me.nickname; username = me.nickname;
}; };

View file

@ -16,6 +16,7 @@ let
name, name,
horizontal-resolution, horizontal-resolution,
vertical-resolution, vertical-resolution,
...
}: }:
let let
display-shader = pkgs.substituteAll { display-shader = pkgs.substituteAll {
@ -38,10 +39,10 @@ let
init-shader init-shader
state-shader state-shader
display-shader display-shader
name
tps tps
cycles cycles
; ;
display = name;
horizontal = builtins.div horizontal-resolution horizontal-dot-size; horizontal = builtins.div horizontal-resolution horizontal-dot-size;
vertical = builtins.div vertical-resolution vertical-dot-size; vertical = builtins.div vertical-resolution vertical-dot-size;
}) })

View file

@ -117,7 +117,7 @@ layout {
// spawn-at-startup "alacritty" "-e" "fish" // spawn-at-startup "alacritty" "-e" "fish"
@wallpapers@ @wallpapers@
@extra@ @autostart@
// Uncomment this line to ask the clients to omit their client-side decorations if possible. // Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored. // If the client will specifically ask for CSD, the request will be honored.