This commit is contained in:
Shelvacu
2024-11-03 01:49:18 -08:00
parent 6963d29cae
commit e89f6ce2de
2 changed files with 59 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
./emily.nix
./yt-archiver.nix
./proxied
./gallerygrab.nix
];
boot.loader.systemd-boot.enable = true;

View File

@@ -0,0 +1,58 @@
{ config, ... }:
let
uid = 992;
gid = 992;
in
{
users.users.gallerygrab = {
inherit uid;
isSystemUser = true;
group = "gallerygrab";
};
users.groups.gallerygrab = { inherit gid; };
systemd.tmpfiles.settings.fdsa."/trip/ffuts/archive/gallerygrab".d = {
user = "gallerygrab";
group = "gallerygrab";
};
containers.gallerygrab = {
privateNetwork = true;
hostAddress = "192.168.100.28";
localAddress = "192.168.100.29";
autoStart = true;
ephemeral = false;
bindMounts."/g" = {
hostPath = "/trip/ffuts/archive/gallerygrab";
isReadOnly = false;
};
config =
let
outer_config = config;
in
{
config,
pkgs,
lib,
...
}:
{
system.stateVersion = "24.05";
networking.firewall.enable = false;
networking.useHostResolvConf = lib.mkForce false;
services.resolved.enable = true;
users.users.gallerygrab = {
inherit uid;
isSystemUser = true;
group = "gallerygrab";
home = "/var/gallerygrab";
};
users.groups.gallerygrab = { inherit gid; };
};
};
}