update, backup conf
This commit is contained in:
@@ -28,6 +28,7 @@ in
|
||||
nodejs_22 # needed for tabby extension
|
||||
python3
|
||||
gcc
|
||||
claude-code
|
||||
]
|
||||
++ lib.optionals cfg.rider [
|
||||
pkgs.jetbrains.rider
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user