feat: init AP management via Colmena and Liminix #110
1 changed files with 38 additions and 23 deletions
31
hive.nix
31
hive.nix
|
@ -46,11 +46,8 @@ let
|
||||||
inherit version;
|
inherit version;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Instanciate a specialized version of nixpkgs
|
mkNixpkgsConfigPerSystem =
|
||||||
mkSystemNixpkgs =
|
system: _:
|
||||||
system: version:
|
|
||||||
let
|
|
||||||
args =
|
|
||||||
if system == "nixos" then
|
if system == "nixos" then
|
||||||
{ }
|
{ }
|
||||||
else
|
else
|
||||||
|
@ -64,6 +61,12 @@ let
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Instanciate a specialized version of nixpkgs
|
||||||
|
mkSystemNixpkgs =
|
||||||
|
system: version:
|
||||||
|
let
|
||||||
|
args = mkNixpkgsConfigPerSystem system version;
|
||||||
in
|
in
|
||||||
import (mkNixpkgs' version) args;
|
import (mkNixpkgs' version) args;
|
||||||
|
|
||||||
|
@ -93,19 +96,31 @@ in
|
||||||
{
|
{
|
||||||
registry = {
|
registry = {
|
||||||
zyxel-nwa50ax = {
|
zyxel-nwa50ax = {
|
||||||
evalConfig = import "${sources.liminix}/lib/eval-config.nix" { nixpkgs = sources.nixos-unstable; };
|
evalConfig = import "${sources.liminix}/lib/eval-config.nix" {
|
||||||
|
nixpkgs = sources.nixos-unstable;
|
||||||
|
};
|
||||||
|
|
||||||
defaults = _: {
|
defaults = _: {
|
||||||
nixpkgs.hostPlatform = {
|
nixpkgs = {
|
||||||
|
source = sources.nixos-unstable;
|
||||||
|
config = {
|
||||||
|
allowUnsupportedSystem = true; # mipsel
|
||||||
|
permittedInsecurePackages = [
|
||||||
|
"python-2.7.18.8" # Python < 3 is needed for kernel backports.
|
||||||
|
];
|
||||||
|
};
|
||||||
|
hostPlatform = {
|
||||||
config = "mipsel-unknown-linux-musl";
|
config = "mipsel-unknown-linux-musl";
|
||||||
gcc = {
|
gcc = {
|
||||||
abi = "32";
|
abi = "32";
|
||||||
arch = "mips32"; # mips32r2?
|
arch = "mips32"; # mips32r2?
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# It's impure, but who cares?
|
# It's impure, but who cares?
|
||||||
# Can Flakes do that?
|
# Can Flakes do that?
|
||||||
nixpkgs.buildPlatform = builtins.currentSystem;
|
buildPlatform = builtins.currentSystem;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue