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"; +}