aboutsummaryrefslogtreecommitdiff
path: root/hosts/enode/default.nix
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-09-07 20:18:25 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-09-07 23:03:42 +0200
commit94658464249d75229d0fd4eee19479ac7df3cc96 (patch)
treecca11596d048449a784a974032714c801aff73ca /hosts/enode/default.nix
parent4f0ad03862bc618c91d7fc7eb4913bec38acb2cc (diff)
enode: continue nixos migration
Diffstat (limited to 'hosts/enode/default.nix')
-rw-r--r--hosts/enode/default.nix24
1 files changed, 21 insertions, 3 deletions
diff --git a/hosts/enode/default.nix b/hosts/enode/default.nix
index bd44d79..c2ba04e 100644
--- a/hosts/enode/default.nix
+++ b/hosts/enode/default.nix
@@ -1,11 +1,29 @@
-{ pkgs, modulesPath, ... }: {
+{ pkgs, ... }: {
imports = [
- "${modulesPath}/virtualisation/qemu-vm.nix"
- # "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
./headscale.nix
./caddy.nix
];
+ networking = {
+ networkmanager.enable = true;
+ useDHCP = false;
+ interfaces.ens3 = {
+ useDHCP = false;
+ ipv4.addresses = [
+ {
+ address = "202.61.250.164";
+ prefixLength = 22;
+ }
+ ];
+ ipv6.addresses = [
+ {
+ address = "2a03:4000:54:b01::";
+ prefixLength = 64;
+ }
+ ];
+ };
+ };
+
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;