Merge branch 'main' of gitea.app.internal:ari/nixos-setup
This commit is contained in:
commit
eecad5cc4a
6 files changed
+16
No files matched your search
@@ -1,4 +1,9 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
systemd.network.wait-online.ignoredInterfaces = [
|
||||||
|
"hermes-br"
|
||||||
|
"vm-hermes"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
@@ -16,6 +16,7 @@ in
|
|||||||
"/opt/homelab/scrypted/db:/server/volume"
|
"/opt/homelab/scrypted/db:/server/volume"
|
||||||
"scrypted-nvr:/nvr"
|
"scrypted-nvr:/nvr"
|
||||||
];
|
];
|
||||||
|
devices = [ "/dev/dri:/dev/dri" ];
|
||||||
environment.SCRYPTED_NVR_VOLUME = "/nvr";
|
environment.SCRYPTED_NVR_VOLUME = "/nvr";
|
||||||
};
|
};
|
||||||
volumes.scrypted-nvr = {
|
volumes.scrypted-nvr = {
|
||||||
|
|||||||
@@ -2,4 +2,8 @@
|
|||||||
{
|
{
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
services.journald.extraConfig = ''
|
||||||
|
SystemMaxUse=1G
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
@@ -104,6 +104,10 @@ Runtime state comes from `/etc/robotnix.json`, written by the module.
|
|||||||
the `containers.*` module: that module shares the host store, which would
|
the `containers.*` module: that module shares the host store, which would
|
||||||
break the robot's self-rebuilds. The unit mirrors `nixos-containers.nix`
|
break the robot's self-rebuilds. The unit mirrors `nixos-containers.nix`
|
||||||
(`Type=notify`, SIGRTMIN+3, exit status 133, `machine.slice`).
|
(`Type=notify`, SIGRTMIN+3, exit status 133, `machine.slice`).
|
||||||
|
- The robot's root gets `/usr/bin` before its first start: `systemd-nspawn`
|
||||||
|
refuses a tree without `/usr` ("doesn't look like it has an OS tree"), the
|
||||||
|
same reason `nixos-containers.nix` creates it. The seed's tail block runs on
|
||||||
|
every start, so no reseed is needed after this landed.
|
||||||
- `systemd-nspawn` runs in `machine.slice` (systemd's nspawn home), not
|
- `systemd-nspawn` runs in `machine.slice` (systemd's nspawn home), not
|
||||||
`system.slice`.
|
`system.slice`.
|
||||||
- Timers use `skyg.server.timers`; eval asserts unique robot ids/IPs, name
|
- Timers use `skyg.server.timers`; eval asserts unique robot ids/IPs, name
|
||||||
|
|||||||
@@ -224,6 +224,7 @@ let
|
|||||||
fi
|
fi
|
||||||
# What nspawn and NixOS's init expect (same as nixos-containers).
|
# What nspawn and NixOS's init expect (same as nixos-containers).
|
||||||
mkdir -p "$root/etc" "$root/var/lib" "$root/root" "$root/home"
|
mkdir -p "$root/etc" "$root/var/lib" "$root/root" "$root/home"
|
||||||
|
mkdir -p -m 0755 "$root/usr/bin"
|
||||||
chmod 0700 "$root/root"
|
chmod 0700 "$root/root"
|
||||||
[ -e "$root/etc/os-release" ] || [ -L "$root/etc/os-release" ] || touch "$root/etc/os-release"
|
[ -e "$root/etc/os-release" ] || [ -L "$root/etc/os-release" ] || touch "$root/etc/os-release"
|
||||||
[ -e "$root/etc/machine-id" ] || touch "$root/etc/machine-id"
|
[ -e "$root/etc/machine-id" ] || touch "$root/etc/machine-id"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ let
|
|||||||
fwdesk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHbBcdMpNPaELUzHRIoRkTUQde+mBQ87Ra2R+974FuUy root@hl-fwdesk";
|
fwdesk = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHbBcdMpNPaELUzHRIoRkTUQde+mBQ87Ra2R+974FuUy root@hl-fwdesk";
|
||||||
bigbox1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFl5xiH4aFlmDWdoU+KmERLYOeOQK2aKP7jenY2G3rFb root@nixos";
|
bigbox1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFl5xiH4aFlmDWdoU+KmERLYOeOQK2aKP7jenY2G3rFb root@nixos";
|
||||||
bigbox2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6l6VqQ23PkGkWVABBoLp1KA6PzkX5oKTy5RBHbQXet root@hl-bigbox2";
|
bigbox2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6l6VqQ23PkGkWVABBoLp1KA6PzkX5oKTy5RBHbQXet root@hl-bigbox2";
|
||||||
|
hermenix = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPfMrT6dDPw3+J22k3X5aR9ERQ8RMRLeBGgqQjmuL7EI hermenix@lab";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"secrets/dns-addresses.conf.age".publicKeys = [
|
"secrets/dns-addresses.conf.age".publicKeys = [
|
||||||
|
|||||||
Reference in new issue
Block a user