summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix1
-rw-r--r--machines/zibeline/default.nix28
-rw-r--r--machines/zibeline/devices.nix39
-rw-r--r--machines/zibeline/hardware.nix23
-rw-r--r--machines/zibeline/home.nix9
5 files changed, 100 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 4a943c3..53de231 100644
--- a/flake.nix
+++ b/flake.nix
@@ -56,6 +56,7 @@
{ name = "taupe"; system = arm; tailscale.ip = "100.103.211.75"; }
{ name = "renard"; system = x86; tailscale.ip = "100.75.17.75"; }
{ name = "fourmi"; system = arm; tailscale.ip = "100.99.119.83"; }
+ { name = "zibeline"; system = x86; tailscale.ip = "100.103.200.75"; }
];
overlays = [ agenix.overlays.default ];
diff --git a/machines/zibeline/default.nix b/machines/zibeline/default.nix
new file mode 100644
index 0000000..c35154c
--- /dev/null
+++ b/machines/zibeline/default.nix
@@ -0,0 +1,28 @@
+{ me, machines, ... }:
+
+{
+ imports = [
+ ../../modules/common.nix
+
+ ./hardware.nix
+ ./devices.nix
+ ];
+
+ foundation = {
+ www = {
+ enable = true;
+
+ public = true;
+ tailnet = false;
+ };
+
+ monitoring = {
+ services = [
+ "base"
+ "tailnet"
+ ];
+ };
+ };
+
+ system.stateVersion = "25.05";
+}
diff --git a/machines/zibeline/devices.nix b/machines/zibeline/devices.nix
new file mode 100644
index 0000000..dce5ff2
--- /dev/null
+++ b/machines/zibeline/devices.nix
@@ -0,0 +1,39 @@
+{ config, lib, pkgs, ... }:
+
+{
+ boot = {
+ loader.grub = {
+ enable = true;
+ device = "/dev/sda";
+ };
+
+ kernelModules = [ "wireguard" ];
+
+ swraid.enable = true;
+ };
+
+ zramSwap = {
+ enable = true;
+ algorithm = "zstd";
+ swapDevices = 1;
+ memoryPercent = 100;
+ };
+
+ networking = {
+ nameservers = [
+ "9.9.9.9"
+ "149.112.112.112"
+ ];
+
+ useDHCP = false;
+ };
+
+ systemd.network.enable = true;
+ systemd.network.networks."10-wan" = {
+ name = "eth0";
+ DHCP = "no";
+ address = [ "194.169.163.56/24" ];
+ gateway = [ "194.169.163.1" ];
+ };
+}
+
diff --git a/machines/zibeline/hardware.nix b/machines/zibeline/hardware.nix
new file mode 100644
index 0000000..b60a848
--- /dev/null
+++ b/machines/zibeline/hardware.nix
@@ -0,0 +1,23 @@
+# Do not modify this file! It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations. Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+ imports = [ ];
+
+ boot.initrd.availableKernelModules = [ "ata_piix" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/a029352d-e2e9-432d-ae2a-43921652ea8b";
+ fsType = "ext4";
+ };
+
+ swapDevices = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ virtualisation.hypervGuest.enable = true;
+}
diff --git a/machines/zibeline/home.nix b/machines/zibeline/home.nix
new file mode 100644
index 0000000..8f27ed2
--- /dev/null
+++ b/machines/zibeline/home.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ../../modules/home/common.nix
+ ];
+
+ home.stateVersion = "25.05";
+}