-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (39 loc) · 1.09 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# awaiting pr's | git+file/path/?ref=branch
qbit.url = "github:fsnkty/nixpkgs/?ref=init-nixos-qbittorrent";
vault.url = "github:fsnkty/nixpkgs/?ref=nixos-vaultwarden-hardening";
};
outputs = inputs: {
colmena = {
meta = {
nixpkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
specialArgs = {
inherit inputs;
};
};
defaults =
{ name, ... }:
{
imports =
let
inherit (inputs.nixpkgs.lib) hasSuffix filesystem;
in
builtins.concatMap
(x: builtins.filter (hasSuffix ".nix") (map toString (filesystem.listFilesRecursive x)))
[
./libs
./mods
]
++ [ ./hosts/${name}.nix ];
deployment = {
targetUser = "fsnkty";
allowLocalDeployment = true;
};
};
factory.deployment.targetHost = null;
library.deployment.targetHost = "192.168.0.3";
};
};
}