1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-25 17:14:38 +03:00
digga/tests/fullFlake/default.nix

76 lines
1.6 KiB
Nix
Raw Normal View History

{ pkgs, lib }:
let
self = lib.mkFlake {
self = self // {
outPath = toString ./.;
};
inputs = {
nixos = pkgs.input;
latest = pkgs.input;
};
channelsConfig = { allowUnfree = true; };
channels = {
nixos = {
imports = [ (lib.importers.overlays ./overlays) ];
};
latest = { };
};
lib = lib.makeExtensible (self: { });
2021-05-21 18:20:52 +03:00
outputsBuilder = channels: {
checks = {
hostBuild = self.nixosConfigurations.NixOS.config.system.build.toplevel;
};
};
sharedOverlays = [
(final: prev: {
ourlib = self.lib;
})
];
nixos = {
hostDefaults = {
system = "x86_64-linux";
channelName = "nixos";
modules = ./modules/module-list.nix;
externalModules = [
{ _module.args.ourlib = self.lib; }
./modules/customBuilds.nix
];
};
imports = [ (lib.importers.hosts ./hosts) ];
hosts = {
/* set host specific properties here */
NixOS = { };
};
profiles = [ ./profiles ./users ];
suites = { profiles, users, ... }: with profiles; {
base = [ cachix core users.nixos users.root ];
};
};
home = {
modules = ./users/modules/module-list.nix;
externalModules = [ ];
profiles = [ ./users/profiles ];
suites = { profiles, ... }: with profiles; {
base = [ direnv git ];
};
};
deploy.nodes = lib.mkDeployNodes self.nixosConfigurations { };
#defaultTemplate = self.templates.flk;
templates.flk.path = ./.;
templates.flk.description = "flk template";
};
in
self