blob: 72bb7e31ebb902099d52f373d26eb5f5e29ec3df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = inputs.nixpkgs.lib.platforms.all;
flake =
let
inherit (inputs) nixpkgs home-manager;
builders = import ./lib/mkFlakeOutputs.nix { inherit nixpkgs home-manager inputs; };
inherit (builders) mkSystemWithHM mkSystemWithHMasModule mkSystem;
merge = builtins.foldl' nixpkgs.lib.recursiveUpdate { };
in
merge [
(mkSystemWithHMasModule {
user = "bee";
hostname = "nixios";
system = "x86_64-linux";
systemState = "25.11";
})
];
};
}
|