This commit is contained in:
martyTF 2026-03-29 08:15:43 +02:00
parent 47c44371e6
commit 7e3533b77e
16 changed files with 234 additions and 131 deletions

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
inputs,
...
}:
@ -21,13 +22,16 @@
timeout = 3;
efi.canTouchEfiVariables = true;
};
kernelPackages = pkgs.linuxPackages_zen;
kernelPackages = pkgs.linuxPackages_latest;
kernel = {
sysctl = {
"vm.swappiness" = 10;
};
};
};
services = {
dbus.implementation = "broker";
};
hardware = {
graphics = {

View file

@ -2,6 +2,7 @@
config,
pkgs,
lib,
inputs,
...
}:
@ -24,16 +25,21 @@
enable = true;
withUWSM = true;
xwayland.enable = true;
};
programs.uwsm = {
enable = true;
waylandCompositors = {
hyprland = {
prettyName = "Hyprland";
comment = "Hyprland compositor managed by UWSM";
binPath = "/run/current-system/sw/bin/start-hyprland";
};
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
};
# programs.sway.enable = true;
# programs.uwsm = {
# enable = true;
# waylandCompositors = {
# hyprland = {
# prettyName = "Hyprland";
# comment = "Hyprland compositor managed by UWSM";
# binPath = "${config.programs.hyprland.package}/share/wayland-sessions/hyprland.desktop";
# };
# };
# };
}

View file

@ -8,8 +8,14 @@
allowedUDPPorts = [
config.services.tailscale.port
53317
16261
16262
];
allowedTCPPorts = [
53317
16261
16262
];
allowedTCPPorts = [ 53317 ];
trustedInterfaces = [ "tailscale0" ];
};
};

View file

@ -6,5 +6,5 @@
}:
{
services.nixos-cli.enable = true;
programs.nixos-cli.enable = true;
}