forked from clan/clan-core
18 lines
694 B
Nix
18 lines
694 B
Nix
|
let
|
||
|
flake = builtins.getFlake "https://git.clan.lol/clan/clan-core/archive/main.tar.gz";
|
||
|
nixpkgs = flake.inputs.nixpkgs;
|
||
|
pkgs = flake.inputs.nixpkgs.legacyPackages.${builtins.currentSystem};
|
||
|
clanCore = flake.outputs.nixosModules.clanCore;
|
||
|
clanModules = flake.outputs.clanModules;
|
||
|
allNixosModules = (import "${nixpkgs}/nixos/modules/module-list.nix") ++ [
|
||
|
"${nixpkgs}/nixos/modules/misc/assertions.nix"
|
||
|
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
||
|
];
|
||
|
clanCoreNixosModules = [
|
||
|
clanCore
|
||
|
{ clanCore.clanDir = ./.; }
|
||
|
] ++ allNixosModules ++ (builtins.attrValues clanModules);
|
||
|
clanCoreNixos = pkgs.nixos { imports = clanCoreNixosModules; };
|
||
|
in
|
||
|
clanCoreNixos.options
|