Migrated legion over. Started migrating hijiri

This commit is contained in:
Nikodem Rabuliński 2023-09-20 09:47:17 +02:00
parent 31dd42d37d
commit f79b3d6ff7
No known key found for this signature in database
GPG key ID: FF629AA9E08138DB
40 changed files with 397 additions and 228 deletions

View file

@ -7,10 +7,8 @@
lib,
flake-parts-lib,
...
}: let
inherit (lib) mkOption mapAttrs;
inherit (flake-parts-lib) mkSubmoduleOptions;
in {
}:
with lib; {
_file = ./configurations.nix;
options = {
@ -18,37 +16,36 @@ in {
# Probably should hardly ever be overriden
builders = {
nixos = mkOption {
type = lib.types.functionTo lib.types.unspecified;
type = types.functionTo types.unspecified;
default = _name: nixpkgs.lib.nixosSystem;
};
darwin = mkOption {
type = lib.types.functionTo lib.types.unspecified;
type = types.functionTo types.unspecified;
default = _name: darwin.lib.darwinSystem;
};
home = mkOption {
type = lib.types.functionTo lib.types.unspecified;
type = types.functionTo types.unspecified;
default = _name: home-manager.lib.homeManagerConfiguration;
};
};
configurations = {
nixos = mkOption {
type = lib.types.unspecified;
type = types.attrsOf types.deferredModule;
default = {};
};
darwin = mkOption {
type = lib.types.unspecified;
type = types.attrsOf types.deferredModule;
default = {};
};
home = mkOption {
type = lib.types.unspecified;
type = types.attrsOf types.deferredModule;
default = {};
};
};
};
config.
flake = {
config.flake = {
nixosConfigurations =
mapAttrs
config.builders.nixos