From 94277df0d84812e8b06ad11cf7dc43dbc99072f7 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Wed, 22 Jan 2025 09:24:51 -0600 Subject: [PATCH] add pi1. Testing in progress --- flake.nix | 6 +++++- hosts/pi1/colmena.nix | 1 - hosts/pi1/hardware-configuration.nix | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 8f8a3a9..08b0504 100644 --- a/flake.nix +++ b/flake.nix @@ -45,7 +45,7 @@ w1 = import ./hosts/w1/colmena.nix; # w2 = import ./hosts/w2/colmena.nix; # t2 = import ./hosts/t2/colmena.nix; - # pi1 = import ./hosts/pi1/colmena.nix; + pi1 = import ./hosts/pi1/colmena.nix; }; nixosConfigurations = { @@ -79,6 +79,10 @@ modules = [ ./hosts/t2 ]; specialArgs = { inherit inputs outputs; }; }; + pi1 = lib.nixosSystem { + modules = [ ./hosts/pi1 ]; + specialArgs = { inherit inputs outputs; }; + }; # servers display = lib.nixosSystem { diff --git a/hosts/pi1/colmena.nix b/hosts/pi1/colmena.nix index 76778bf..725b694 100644 --- a/hosts/pi1/colmena.nix +++ b/hosts/pi1/colmena.nix @@ -1,7 +1,6 @@ { inputs, outputs, lib, config, pkgs, ... }: { imports = [ ./default.nix ]; deployment = { - targetHost = "nixos"; tags = [ "arm" ]; }; } diff --git a/hosts/pi1/hardware-configuration.nix b/hosts/pi1/hardware-configuration.nix index efe148e..7a5acb8 100644 --- a/hosts/pi1/hardware-configuration.nix +++ b/hosts/pi1/hardware-configuration.nix @@ -11,10 +11,10 @@ boot.loader.grub.enable = false; boot.loader.generic-extlinux-compatible.enable = true; - fileSystems."/" = { - device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; swapDevices = [ ];