diff --git a/flake.lock b/flake.lock index 1b893c4..b5e8af5 100644 --- a/flake.lock +++ b/flake.lock @@ -397,11 +397,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1771008912, - "narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=", + "lastModified": 1771369470, + "narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a82ccc39b39b621151d6732718e3e250109076fa", + "rev": "0182a361324364ae3f436a63005877674cf45efb", "type": "github" }, "original": { diff --git a/modules/graphical/code.nix b/modules/graphical/code.nix index becf746..b67de55 100644 --- a/modules/graphical/code.nix +++ b/modules/graphical/code.nix @@ -28,6 +28,7 @@ in nodejs_22 # needed for tabby extension python3 gcc + claude-code ] ++ lib.optionals cfg.rider [ pkgs.jetbrains.rider diff --git a/modules/graphical/games.nix b/modules/graphical/games.nix index f6f4b6b..8a3d73e 100644 --- a/modules/graphical/games.nix +++ b/modules/graphical/games.nix @@ -48,14 +48,21 @@ in with pkgs; [ mangohud - lutris + (lutris.override + { + extraLibraries = + pkgs: with pkgs; [ + libadwaita + gtk4 + ]; + }) ] ++ optionals cfg.enablePreinstalled ( with pkgs; [ #taisei osu-lazer-bin - wineWowPackages.unstableFull + wineWow64Packages.unstableFull winetricks heroic prismlauncher diff --git a/modules/misc/backup.nix b/modules/misc/backup.nix index ffea266..b7abe85 100644 --- a/modules/misc/backup.nix +++ b/modules/misc/backup.nix @@ -164,6 +164,23 @@ in ]; repository = "/1tbssd/restic"; }; + localbackup-2tb-hdd = { + initialize = true; + passwordFile = config.age.secrets.restic-pw.path; + exclude = cfg.excludePaths; + paths = cfg.large; + timerConfig = { + OnCalendar = "04:00"; + Persistent = true; + }; + pruneOpts = [ + "--keep-daily 7" + "--keep-weekly 3" + "--keep-monthly 3" + "--keep-yearly 3" + ]; + repository = "/hdd/restic"; + }; #localbackup-1tb = { # initialize = true; # passwordFile = config.age.secrets.restic-pw.path; diff --git a/modules/services/nginx.nix b/modules/services/nginx.nix index 4221354..307b2dc 100644 --- a/modules/services/nginx.nix +++ b/modules/services/nginx.nix @@ -140,6 +140,26 @@ in "/misc-files/" = { alias = "/var/www/misc-files/"; }; + + "/comms2/api" = { + extraConfig = '' + rewrite /comms2/api/(.*) /$1 break; + ''; + proxyPass = "http://localhost:3200/"; + proxyWebsockets = true; + }; + "/comms2" = { + extraConfig = '' + return 301 /comms2/; + ''; + }; + "/comms2/" = { + extraConfig = '' + more_set_headers "Permissions-Policy: geolocation=(), microphone=(self), camera=(self)"; + ''; + alias = "/var/www/discord-clone/"; + tryFiles = "$uri $uri/ /var/www/discord-clone/index.html"; + }; }; }; in