container thingies
This commit is contained in:
parent
60cc8815e3
commit
240b1b4568
4 changed files with 13 additions and 1 deletions
|
|
@ -27,6 +27,12 @@
|
||||||
accent = "blue";
|
accent = "blue";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
containers = {
|
||||||
|
enable = true;
|
||||||
|
jellyfin.enable = true;
|
||||||
|
interface = "wlp192s0";
|
||||||
|
};
|
||||||
|
|
||||||
users.default.enable = true;
|
users.default.enable = true;
|
||||||
|
|
||||||
base = {
|
base = {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ in {
|
||||||
containers = {
|
containers = {
|
||||||
enable = true;
|
enable = true;
|
||||||
backupDir = "/home/${username}/backups";
|
backupDir = "/home/${username}/backups";
|
||||||
|
interface = "enp2s0";
|
||||||
|
|
||||||
nginx.enable = true;
|
nginx.enable = true;
|
||||||
vaultwarden.enable = true;
|
vaultwarden.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ in {
|
||||||
sqlitebrowser
|
sqlitebrowser
|
||||||
typst
|
typst
|
||||||
xclip
|
xclip
|
||||||
|
unityhub
|
||||||
uv
|
uv
|
||||||
zed-editor
|
zed-editor
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,15 @@ in {
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./forgejo.nix
|
./forgejo.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
./jellyfin.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
horseman.containers = {
|
horseman.containers = {
|
||||||
enable = mkEnableOption "Containers";
|
enable = mkEnableOption "Containers";
|
||||||
|
interface = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
backupDir = mkOption {
|
backupDir = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
};
|
};
|
||||||
|
|
@ -26,7 +30,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Use "ve-*" when using nftables instead of iptables
|
# Use "ve-*" when using nftables instead of iptables
|
||||||
internalInterfaces = ["ve-+"];
|
internalInterfaces = ["ve-+"];
|
||||||
externalInterface = "enp2s0";
|
externalInterface = cfg.interface;
|
||||||
# Lazy IPv6 connectivity for the container
|
# Lazy IPv6 connectivity for the container
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue