mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
TF deluge
This commit is contained in:
parent
b79f4ea5ca
commit
3c9619093d
3 changed files with 13 additions and 8 deletions
|
|
@ -1,5 +0,0 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.nixos.profiles; [
|
||||
bootable
|
||||
];
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
}: let
|
||||
# The purpose of this file is to set up the host module which allows assigning of the system, e.g. aarch64-linux and the builder used with less pain.
|
||||
inherit (lib.modules) evalModules;
|
||||
inherit (std) string types optional set;
|
||||
inherit (std) string types optional set list;
|
||||
defaultSpecialArgs = {
|
||||
inherit inputs tree std;
|
||||
};
|
||||
|
|
@ -133,6 +133,10 @@
|
|||
tree.systems;
|
||||
processHost = name: cfg: let
|
||||
host = cfg.config;
|
||||
serverLocations = {
|
||||
mediabox = "10.1.1.167";
|
||||
orb = "orb";
|
||||
};
|
||||
in {
|
||||
deploy.nodes = set.merge [
|
||||
(set.optional (host.folder == "nixos") {
|
||||
|
|
@ -145,17 +149,22 @@
|
|||
magicRollback = false;
|
||||
};
|
||||
})
|
||||
(set.optional (name != "renko" && host.folder == "nixos") {
|
||||
(set.optional (!(list.elem name (set.keys serverLocations)) && host.folder == "nixos") {
|
||||
${name} = {
|
||||
hostname = "${name}.inskip.me";
|
||||
sshUser = "deploy";
|
||||
sshOpts = ["-oControlMaster=no" "-oControlPath=/tmp/willneverexist" "-p" "${builtins.toString (builtins.head inputs.self.nixosConfigurations.${name}.config.services.openssh.ports)}"];
|
||||
};
|
||||
})
|
||||
(set.optional ((list.elem name (set.keys serverLocations)) && host.folder == "nixos") {
|
||||
${name} = {
|
||||
hostname = serverLocations.${name};
|
||||
sshUser = "root";
|
||||
};
|
||||
})
|
||||
(set.optional (name == "renko" && host.folder == "nixos") {
|
||||
${name} = {
|
||||
sshUser = "nixos";
|
||||
hostname = "orb";
|
||||
fastConnection = true;
|
||||
sshOpts = ["-oControlMaster=no" "-oControlPath=/tmp/willneverexist" "-p" "32222"];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ locals {
|
|||
"tautulli",
|
||||
"bazarr",
|
||||
"ombi",
|
||||
"deluge",
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue