mirror of
https://github.com/divnix/digga.git
synced 2024-12-27 18:16:59 +03:00
37 lines
697 B
Nix
37 lines
697 B
Nix
{ home, nix, nixpkgs, flake, ... }:
|
|
let
|
|
utils = import ../lib/utils.nix { lib = nixpkgs.lib; };
|
|
|
|
inherit (utils)
|
|
reqImport
|
|
vimport
|
|
;
|
|
|
|
|
|
config = self:
|
|
nixpkgs.lib.nixosSystem rec {
|
|
system = "x86_64-linux";
|
|
|
|
modules = let
|
|
core = ../profiles/core.nix;
|
|
|
|
global = {
|
|
_module.args.utils = utils;
|
|
networking.hostName = self;
|
|
nix.package = nix.defaultPackage."${system}";
|
|
system.configurationRevision = flake.rev;
|
|
};
|
|
|
|
local = vimport ./. "${self}.nix";
|
|
in
|
|
[
|
|
core
|
|
global
|
|
local
|
|
home
|
|
];
|
|
|
|
};
|
|
in
|
|
reqImport { dir = ./.; _import = config; }
|