more refactoring

This commit is contained in:
chloe 2025-03-23 17:39:15 +01:00
parent dcc640bd56
commit ed7afeba43
20 changed files with 222 additions and 136 deletions

View file

View file

@ -0,0 +1,6 @@
{config, pkgs, ...}:
{
imports = [
./tailscale.nix
]
}

18
shared/client/games.nix Normal file
View file

@ -0,0 +1,18 @@
{config, pkgs, ...}:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
];
environment.systemPackages = with pkgs; [
lutris
];
};
}

24
shared/client/sway.nix Normal file
View file

@ -0,0 +1,24 @@
{config, pkgs, ...}: {
environment.systemPackages = with pkgs; [
mako
grim
slurp
wl-clipboard
xdg-utils
sway-contrib.grimshot
swaylock
swaynotificationcenter
];
services.gnome.gnome-keyring.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
xdg.portal.wlr.enable = true;
security.pam.loginLimits = [
{ domain = "@users"; item = "rtprio"; type = "-"; value = 1; }
];
}

View file

@ -0,0 +1,5 @@
{config, pkgs, ...}:
{
services.tailscale.enable = true;
}

View file