-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
44 lines (40 loc) · 1.19 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
{
description = "Kipos flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
alejandra.url = "github:kamadorueda/alejandra/d7552fef2ccf1bbf0d36b27f6fddb19073f205b7";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {
alejandra,
disko,
nixpkgs,
self,
sops-nix,
...
}: let
system = "x86_64-linux"; # Later can add support for darwin as-needed.
pkgs = import nixpkgs {
system = "${system}";
config.allowUnfree = true;
};
in {
formatter.${system} = alejandra.defaultPackage.${system};
devShell."${system}" = import ./shell.nix {inherit pkgs;};
# test is a hostname for our machine
# nixosConfigurations.hello = nixpkgs.lib.nixosSystem {
# inherit system;
# modules = [
# ./configuration.nix
# ];
# };
checks.${system} = {
hello = pkgs.testers.runNixOSTest ./tests/hello.nix;
k3s-multi-node = pkgs.testers.runNixOSTest ./tests/k3s-multi-node.nix;
};
};
}