-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (38 loc) · 1.24 KB
/
flake.nix
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
42
43
44
45
46
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
obscura.url = "github:42loco42/obscura";
};
outputs = { self, nixpkgs, ... }@inputs:
let
lib = import ./lib inputs;
out = {
inherit lib;
__functor = _: import ./lib/main.nix { inherit self lib nixpkgs; };
templates.default = {
path = ./template;
description = "Aquaris example config template";
};
} // import ./packages lib nixpkgs;
example = out self {
# shared config passed as aquaris.cfg to every machine
users = {
dev = {
description = "Example user";
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJVieLCkWGImVI9c7D0Z0qRxBAKf0eaQWUfMn0uyM/Ql"
];
git = {
name = "John E. Xample"; # if unset, falls back to user description or null
email = "[email protected]";
key = "5FD475844A801467A76A2BC1F8BFE9665DC06BBB";
};
};
};
};
in
lib.merge [ out example ];
}