inherit hell yeah
This commit is contained in:
parent
9531572ca6
commit
505f960a53
2 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
let
|
let
|
||||||
# define a block that just takes a hostname and returns attrset to not repeat the same fields
|
# define a block that just takes a hostname and returns attrset to not repeat the same fields
|
||||||
sshBlock = hostname: {
|
sshBlock = hostname: {
|
||||||
hostname = hostname;
|
inherit hostname;
|
||||||
user = "osbm";
|
user = "osbm";
|
||||||
identityFile = "~/.ssh/id_ed25519";
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
extraOptions = {
|
extraOptions = {
|
||||||
|
|
@ -14,7 +14,7 @@ let
|
||||||
};
|
};
|
||||||
# sshBlockAtreus is the same as sshBlock but with 8090 as the port
|
# sshBlockAtreus is the same as sshBlock but with 8090 as the port
|
||||||
sshBlockAtreus = hostname: {
|
sshBlockAtreus = hostname: {
|
||||||
hostname = hostname;
|
inherit hostname;
|
||||||
user = "osbm";
|
user = "osbm";
|
||||||
identityFile = "~/.ssh/id_ed25519";
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
port = 8022;
|
port = 8022;
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 2222; # different port to avoid conflicts
|
port = 2222; # different port to avoid conflicts
|
||||||
shell = "/bin/cryptsetup-askpass";
|
shell = "/bin/cryptsetup-askpass";
|
||||||
authorizedKeys = authorizedKeys;
|
inherit authorizedKeys;
|
||||||
hostKeys = [ "/etc/ssh/initrd" ];
|
hostKeys = [ "/etc/ssh/initrd" ];
|
||||||
};
|
};
|
||||||
boot.initrd.secrets = {
|
boot.initrd.secrets = {
|
||||||
|
|
@ -208,7 +208,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
canmount = "off";
|
canmount = "off";
|
||||||
mountpoint = "none";
|
mountpoint = "none";
|
||||||
reservation = cfg.zfs.root.reservation;
|
inherit (cfg.zfs.root) reservation;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -288,7 +288,7 @@ in
|
||||||
options = {
|
options = {
|
||||||
canmount = "off";
|
canmount = "off";
|
||||||
mountpoint = "none";
|
mountpoint = "none";
|
||||||
reservation = cfg.zfs.storage.reservation;
|
inherit (cfg.zfs.storage) reservation;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue