2023-11-23 16:03:07 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-06-01 21:43:21 +02:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-05-02 09:48:15 +02:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
2023-11-23 16:03:07 +01:00
|
|
|
|
|
|
|
get-flake.url = "github:ursi/get-flake";
|
|
|
|
|
2024-06-01 21:43:21 +02:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-23 16:03:07 +01:00
|
|
|
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
srvos.url = "github:numtide/srvos";
|
|
|
|
srvos.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
# outputs = _: {};
|
|
|
|
|
2024-11-15 10:17:56 +01:00
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
get-flake,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}@attrs:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
nodeName = "hostkey-0";
|
2023-11-23 16:03:07 +01:00
|
|
|
|
2024-11-15 10:17:56 +01:00
|
|
|
mkNixosConfiguration =
|
2023-11-23 16:03:07 +01:00
|
|
|
{
|
2024-11-15 10:17:56 +01:00
|
|
|
extraModules ? [ ],
|
|
|
|
...
|
|
|
|
}@attrs:
|
|
|
|
nixpkgs.lib.nixosSystem (
|
|
|
|
nixpkgs.lib.attrsets.recursiveUpdate attrs {
|
|
|
|
specialArgs = {
|
|
|
|
nodeFlake = self;
|
|
|
|
repoFlake = get-flake ../../../..;
|
|
|
|
inherit nodeName;
|
|
|
|
};
|
2023-11-23 16:03:07 +01:00
|
|
|
|
2024-11-15 10:17:56 +01:00
|
|
|
modules = [ ./configuration.nix ] ++ extraModules;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
|
|
|
native = mkNixosConfiguration { inherit system; };
|
2023-11-23 16:03:07 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|