added vim.enable to generic.nix

This commit is contained in:
mc-fucker 2024-08-27 22:43:04 +02:00
parent a1948b52b3
commit 9515c6087b
2 changed files with 31 additions and 0 deletions

View file

@ -36,6 +36,7 @@ in
enable = lib.mkDefault true; enable = lib.mkDefault true;
netatop.enable = lib.mkDefault true; netatop.enable = lib.mkDefault true;
}; };
vim.enable = true;
vim.defaultEditor = true; vim.defaultEditor = true;
}; };

30
modules/tvproxy.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, lib, ... }:
let
cfg = import ./vars.nix;
name = "tvproxy";
in
{
sops.secrets."${name}/registryuser" = {};
sops.secrets."${name}/registrypass" = {};
sops.secrets."${name}/env" = {};
virtualisation.oci-containers.containers.tvproxy = {
image = "1337.run.place:63443/tvproxy";
login.username = builtins.readFile config.sops.secrets."tvproxy/registryuser".path;
login.passwordFile = config.sops.secrets."tvproxy/registrypass".path;
login.registry = "https://1337.run.place:63443";
environment = {
TZ = "Europe/Berlin";
IP = "192.168.178.2";
IPPORT = "64321";
};
environmentFiles = [ config.sops.secrets."${name}/env".path ];
ports = [
"64321:64321"
];
extraOptions = cfg.podman.extraOptions;
};
}
# vim: set et ts=2 sw=2 ai: