Switch to lix

This commit is contained in:
monologiq 2025-12-23 17:20:55 +01:00
parent 764a05c73c
commit d0c6f19a09
22 changed files with 544 additions and 632 deletions

61
default.nix Normal file
View file

@ -0,0 +1,61 @@
{
system ? builtins.currentSystem,
sources ? import ./npins,
}:
let
pkgs = import sources.nixpkgs { };
nixos = import (sources.nixpkgs + "/nixos");
darwin = import sources.nix-darwin;
lanzaboote = import sources.lanzaboote { inherit pkgs; };
inherit (pkgs.lib) mkOption types;
in
{
persephone = nixos {
configuration = {
imports = [
lanzaboote.nixosModules.lanzaboote
./machines/persephone.nix
];
options = {
machine = {
hostName = mkOption {
type = types.str;
description = "The hostname for the machine.";
default = "persephone";
};
};
};
};
};
hermes = darwin {
system = "aarch64-darwin";
nixpkgs = "${sources.nixpkgs}";
configuration = {
imports = [
./machines/hermes.nix
{
nix.registry.nixpkgs.to = {
type = "path";
path = sources.nixpkgs;
};
}
];
options = {
machine = {
hostName = mkOption {
type = types.str;
description = "The hostname for the machine.";
default = "hermes";
};
};
};
};
};
}