feat: add uConsole with separate nixpkgs (nixos-24.11)
- Uses nixpkgs-uconsole (nixos-24.11) for uConsole only - Other hosts (lazyworkhorse, cyt-pi) stay on nixos-unstable - Enables nixos-uconsole module compatibility - Includes full CM5 configuration (HAM, SDR, security tools, GPS)
This commit is contained in:
26
flake.nix
26
flake.nix
@@ -12,10 +12,18 @@
|
||||
url = "git+https://git.lix.systems/lix-project/lix?ref=main";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# uConsole CM5 hardware support (uses older nixpkgs for module compatibility)
|
||||
nixpkgs-uconsole.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||
nixos-uconsole = {
|
||||
url = "github:nixos-uconsole/nixos-uconsole";
|
||||
inputs.nixpkgs.follows = "nixpkgs-uconsole";
|
||||
};
|
||||
# Raspberry Pi 5 hardware support
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware/master";
|
||||
self.submodules = true;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, agenix, lix, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixpkgs-uconsole, agenix, lix, nixos-uconsole, nixos-hardware, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
keys = import ./lib/keys.nix;
|
||||
@@ -79,6 +87,22 @@
|
||||
./hosts/cyt-pi/hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
|
||||
uConsole = nixpkgs-uconsole.lib.nixosSystem {
|
||||
specialArgs = { inherit self keys paths inputs; };
|
||||
modules = [
|
||||
{
|
||||
nixpkgs.overlays = overlays;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
nix.package = lix.packages."aarch64-linux".default;
|
||||
}
|
||||
nixos-uconsole.nixosModules.uconsole-cm5
|
||||
nixos-hardware.nixosModules.raspberry-pi-5
|
||||
./hosts/uconsole/configuration.nix
|
||||
./hosts/uconsole/hardware-configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
devShells.${system}.default = devShell;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user