update, backup conf

This commit is contained in:
Kopatz
2026-02-26 17:04:48 +01:00
parent 66272aaa66
commit c86275a4ff
5 changed files with 50 additions and 5 deletions

6
flake.lock generated
View File

@@ -397,11 +397,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1771008912, "lastModified": 1771369470,
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=", "narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a82ccc39b39b621151d6732718e3e250109076fa", "rev": "0182a361324364ae3f436a63005877674cf45efb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -28,6 +28,7 @@ in
nodejs_22 # needed for tabby extension nodejs_22 # needed for tabby extension
python3 python3
gcc gcc
claude-code
] ]
++ lib.optionals cfg.rider [ ++ lib.optionals cfg.rider [
pkgs.jetbrains.rider pkgs.jetbrains.rider

View File

@@ -48,14 +48,21 @@ in
with pkgs; with pkgs;
[ [
mangohud mangohud
lutris (lutris.override
{
extraLibraries =
pkgs: with pkgs; [
libadwaita
gtk4
];
})
] ]
++ optionals cfg.enablePreinstalled ( ++ optionals cfg.enablePreinstalled (
with pkgs; with pkgs;
[ [
#taisei #taisei
osu-lazer-bin osu-lazer-bin
wineWowPackages.unstableFull wineWow64Packages.unstableFull
winetricks winetricks
heroic heroic
prismlauncher prismlauncher

View File

@@ -164,6 +164,23 @@ in
]; ];
repository = "/1tbssd/restic"; 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 = { #localbackup-1tb = {
# initialize = true; # initialize = true;
# passwordFile = config.age.secrets.restic-pw.path; # passwordFile = config.age.secrets.restic-pw.path;

View File

@@ -140,6 +140,26 @@ in
"/misc-files/" = { "/misc-files/" = {
alias = "/var/www/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 in