Switch to lix
This commit is contained in:
parent
764a05c73c
commit
d0c6f19a09
22 changed files with 544 additions and 632 deletions
61
default.nix
Normal file
61
default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue