chore(hyprland): update syntax to lua

Committing as is because otherwise I will never move on
This commit is contained in:
Tibo De Peuter 2026-09-24 17:55:50 +02:00
parent e158449bf3
commit bdfa3988f9
No known key found for this signature in database
GPG key ID: 9187B5FA0F4B6F6D
20 changed files with 1169 additions and 809 deletions

View file

@ -0,0 +1,23 @@
{
boot = {
kernelParams = [
"mem_sleep_default=deep"
"resume_offset=66637824"
];
resumeDevice = "/dev/disk/by-uuid/e759b10f-7949-4094-9272-d91340dcc5b6";
};
powerManagement.enable = true;
swapDevices = [{
device = "/var/lib/swap";
size = 37 * 1024;
options = [ "discard" ];
}];
#systemd.sleep.extraConfig = ''
# HibernateDelaySec=30m
# SuspendState=mem
#'';
}

View file

@ -8,8 +8,7 @@ in {
config = lib.mkIf cfg.enable {
environment = {
sessionVariables = {
# Hint Electron apps to use wayland
NIXOS_OZONE_WL = "1";
NIXOS_OZONE_WL = "1"; # Hint Electron apps to use wayland
ASSETS_DIR = ../../../../assets;
SCRIPT_DIR = ../../../../scripts;
@ -25,10 +24,12 @@ in {
wlsunset
wl-clipboard # Copying to system clipboard in vim
wl-mirror # Mirror an output
wdisplays # Tool to configure displays
wdisplays nwg-displays
hyprlandPlugins.hy3 # i3/sway layout plugin
grim slurp # Screenshots
swaylock
glib

View file

@ -37,10 +37,14 @@ in {
recursive = true;
source = ../../../stow/hyprland/.config/hypr;
};
".config/hypr/hy3-plugin.conf" = {
".config/hypr/hy3-plugin.lua" = {
inherit (config.sisyphus.desktop.hyprland) enable;
text = ''
plugin = ${pkgs.hyprlandPlugins.hy3}/lib/libhy3.so
hl.on("hyprland.start", function()
if not (hl.plugin and hl.plugin.hy3) then
hl.exec_cmd('hyprctl plugin load ${pkgs.hyprlandPlugins.hy3}/lib/libhy3.so')
end
end)
'';
};
".config/kitty" = {