update colmena state

This commit is contained in:
Ingolf Wagner 2023-04-30 00:47:46 +02:00
parent f8678722c8
commit 33b3a33f51
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 52 additions and 13 deletions

View file

@ -263,8 +263,8 @@
}; };
chungus = { name, nodes, pkgs, ... }: { chungus = { name, nodes, pkgs, ... }: {
#deployment.targetHost = "${name}.private"; deployment.targetHost = "${name}.private";
deployment.targetHost = "192.168.178.31"; #deployment.targetHost = "192.168.178.31";
deployment.tags = [ "server" "online" "private" ]; deployment.tags = [ "server" "online" "private" ];
imports = [ imports = [
grocy-scanner.nixosModule grocy-scanner.nixosModule

View file

@ -13,6 +13,7 @@ let
bobi = "10.23.42.25"; bobi = "10.23.42.25";
pepe = "10.23.42.26"; pepe = "10.23.42.26";
cream = "10.23.42.27"; cream = "10.23.42.27";
chungus = "10.23.42.28";
robi = "10.23.42.111"; robi = "10.23.42.111";
}; };
subDomains = { subDomains = {
@ -65,6 +66,10 @@ in
subnets = [{ address = hosts.pepe; }]; subnets = [{ address = hosts.pepe; }];
settings.Ed25519PublicKey = "LnE+w6ZfNCky4Kad3TBxpFKRJ2PJshkSpW6mC3pcsPI"; settings.Ed25519PublicKey = "LnE+w6ZfNCky4Kad3TBxpFKRJ2PJshkSpW6mC3pcsPI";
}; };
chungus = {
subnets = [{ address = hosts.chungus; }];
settings.Ed25519PublicKey = "mJP+zzYGv42KItpSf3lMkr3dwa5xW3n3hi0W2Z75jfJ";
};
robi = { robi = {
addresses = [{ address = "144.76.13.147"; }]; addresses = [{ address = "144.76.13.147"; }];
subnets = [{ address = hosts.robi; }]; subnets = [{ address = hosts.robi; }];
@ -107,6 +112,10 @@ in
hostNames = [ "pepe.${network}" hosts.pepe ]; hostNames = [ "pepe.${network}" hosts.pepe ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPlva+Vdj8WmQPlbQLN3qicMz5AAsyTzK53BincxtAz"; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPlva+Vdj8WmQPlbQLN3qicMz5AAsyTzK53BincxtAz";
}; };
"chungus.${network}" = {
hostNames = [ "chungus.${network}" hosts.chungus ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC+1U/BacpMxNmLc0r72i/LkmlZapSuIABKsulJnf7Up";
};
"bobi.${network}" = { "bobi.${network}" = {
hostNames = [ "bobi.${network}" hosts.bobi ]; hostNames = [ "bobi.${network}" hosts.bobi ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0haepNVEaocfWh6kwVc4QsSg2iqO5k+hjarphBqMVk"; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0haepNVEaocfWh6kwVc4QsSg2iqO5k+hjarphBqMVk";

View file

@ -50,10 +50,11 @@
users.users.root.shell = pkgs.zsh; users.users.root.shell = pkgs.zsh;
# todo : rename to component.init.ssh # todo : rename to component.init.ssh
#configuration.init-ssh = { # todo : make tor optional
# enable = "enabled"; configuration.init-ssh = {
# kernelModules = [ "e1000e" ]; enable = "enabled";
#}; kernelModules = [ "e1000e" ];
};
# just enable lan # just enable lan
#networking.dhcpcd.allowInterfaces = [ "enp0s25" ]; #networking.dhcpcd.allowInterfaces = [ "enp0s25" ];

View file

@ -85,11 +85,18 @@ in
zroot = { zroot = {
type = "zpool"; type = "zpool";
#rootFsOptions = {
#mountpoint = "none";
#canmount = "off";
#};
datasets = { datasets = {
"root" = { "root" = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/"; mountpoint = "/";
options.compression = "lz4"; options = {
mountpoint = "/";
compression = "lz4";
};
}; };
}; };
}; };
@ -99,23 +106,40 @@ in
zraid = { zraid = {
type = "zpool"; type = "zpool";
mode = "raidz2"; mode = "raidz2";
rootFsOptions = {
mountpoint = "none";
canmount = "off";
};
datasets = { datasets = {
"media" = { "media" = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/media"; mountpoint = "/media";
options.compression = "lz4";
};
"media/nextcloud" = {
type = "zfs_fs";
mountpoint = "/media/nextcloud";
options = { options = {
mountpoint = "/media";
compression = "lz4";
};
};
"nextcloud" = {
type = "zfs_fs";
mountpoint = "/nextcloud";
options = {
mountpoint = "/nextcloud";
compression = "lz4"; compression = "lz4";
# question: is that combination of frequency and keep even possible?
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
"com.sun:auto-snapshot:daily" = "true,keep=32"; "com.sun:auto-snapshot:daily" = "true,keep=32";
"com.sun:auto-snapshot:montly" = "true,keep=48"; "com.sun:auto-snapshot:montly" = "true,keep=48";
}; };
}; };
"borg" = {
type = "zfs_fs";
mountpoint = "/borg";
options = {
mountpoint = "/borg";
compression = "lz4";
"com.sun:auto-snapshot" = "false";
"com.sun:auto-snapshot:daily" = "true,keep=32";
};
};
}; };
}; };

View file

@ -16,6 +16,11 @@ in
type = with types; enum [ "disable" "prepare" "enabled" ]; type = with types; enum [ "disable" "prepare" "enabled" ];
}; };
#mode = mkOption {
# default = "ssh";
# type = with types; enum [ "ssh" "ssh+tor" ];
#};
kernelModules = mkOption { kernelModules = mkOption {
type = with types; listOf str; type = with types; listOf str;
description = description =