-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
47 lines (39 loc) · 1.16 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
47
{
inputs = {
nixpkgs.url = "github:ashkitten/nixpkgs/nyrina";
colmena = {
url = "github:zhaofengli/colmena";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, colmena, impermanence, sops-nix, ... }: {
nixosConfigurations = {
xenia = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
impermanence.nixosModules.impermanence
sops-nix.nixosModules.sops
./xenia
{ deployment.buildOnTarget = true; }
];
extraModules = [
colmena.nixosModules.deploymentOptions
];
};
};
colmena = {
meta.nixpkgs = import nixpkgs { system = "x86_64-linux"; };
} // builtins.mapAttrs (name: value: {
nixpkgs.system = value.config.nixpkgs.system;
imports = value._module.args.modules;
}) (self.nixosConfigurations);
devShells."x86_64-linux".default = import ./shell.nix {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
};
};
}