stuff
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
./emily.nix
|
||||
./yt-archiver.nix
|
||||
./proxied
|
||||
./gallerygrab.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
58
triple-dezert/gallerygrab.nix
Normal file
58
triple-dezert/gallerygrab.nix
Normal 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; };
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user