summaryrefslogtreecommitdiff
path: root/machines/zibeline
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-27 19:26:04 +0200
committerMel <mel@rnrd.eu>2025-07-27 19:26:04 +0200
commit519d8ec24f9447c7a922353dde07f7abe2895d75 (patch)
treead06cec72d7a2f5465e8b24871ceec2cae7e4f9b /machines/zibeline
parent938ea58fbd61d241abaf6d59013a9aa255ef83f1 (diff)
downloadnetwork-519d8ec24f9447c7a922353dde07f7abe2895d75.tar.zst
network-519d8ec24f9447c7a922353dde07f7abe2895d75.zip
Add new zibeline machine configuration
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/zibeline')
-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
4 files changed, 99 insertions, 0 deletions
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";
+}