From 7d18c2713f01b8dc44e4332822c7b9b485908cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Mon, 30 Mar 2026 00:59:20 +0200 Subject: [PATCH] feat: prepare initial cube host --- flake/hosts.nix | 12 +++++++++++ hosts/cube/configuration.nix | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 hosts/cube/configuration.nix diff --git a/flake/hosts.nix b/flake/hosts.nix index 6a7b249..6765844 100644 --- a/flake/hosts.nix +++ b/flake/hosts.nix @@ -73,6 +73,18 @@ in ]; }; + cube = mkHost "cube" { + system = "x86_64-linux"; + user = "matej"; + features = [ + "openssh" + "localisation" + "shell" + "tailscale" + "remote-base" + ]; + }; + # nix run github:nix-community/nixos-anywhere -- --flake .#floo root@ floo = mkHost "floo" { system = "x86_64-linux"; diff --git a/hosts/cube/configuration.nix b/hosts/cube/configuration.nix new file mode 100644 index 0000000..98d9f67 --- /dev/null +++ b/hosts/cube/configuration.nix @@ -0,0 +1,41 @@ +{ inputs, ... }: +{ + imports = [ inputs.disko.nixosModules.disko ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + disko.devices.disk.main = { + type = "disk"; + device = "/dev/nvme0n1"; + content = { + type = "gpt"; + partitions = { + esp = { + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + + localisation = { + timeZone = "Europe/Ljubljana"; + defaultLocale = "en_US.UTF-8"; + }; + + system.stateVersion = "25.11"; +}