-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
51 lines (47 loc) · 1.28 KB
/
flake.nix
File metadata and controls
51 lines (47 loc) · 1.28 KB
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
48
49
50
51
{
description = "config";
inputs = {
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-25.11";
};
nix-index-database = {
type = "github";
owner = "nix-community";
repo = "nix-index-database";
ref = "main";
inputs.nixpkgs.follows = "nixpkgs";
};
secret = {
type = "git";
url = "git+ssh://[email protected]/git-server/repos/config-secret";
ref = "master";
};
};
outputs = { self, nixpkgs, nix-index-database, secret, ... }: let
commonModules = [
nix-index-database.nixosModules.nix-index
secret.nixosModules.common
];
in rec {
nixosConfigurations = {
coloris = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./nixos/machines/coloris.nix ] ++ commonModules;
};
saelli = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./nixos/machines/saelli.nix ] ++ commonModules;
};
};
hydraJobs =
builtins.mapAttrs (_: nixosCfg: nixosCfg.config.system.build.toplevel) nixosConfigurations
// {
installables = builtins.mapAttrs (_: nixosCfg: {
inherit (nixosCfg.pkgs) arduino;
}) nixosConfigurations;
};
};
}