added vim.enable to generic.nix
This commit is contained in:
parent
a1948b52b3
commit
9515c6087b
2 changed files with 31 additions and 0 deletions
|
|
@ -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
30
modules/tvproxy.nix
Normal 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:
|
||||||
Loading…
Add table
Reference in a new issue