-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathflake.nix
45 lines (32 loc) · 1.04 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
{
description = "A highly awesome system configuration.";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable-small; # Lets pretend that this is a stable channel
unstable.url = github:nixos/nixpkgs/nixos-unstable-small;
utils.url = path:../../;
};
outputs = inputs@{ self, nixpkgs, unstable, utils }:
utils.lib.mkFlake {
inherit self inputs;
# Channel definitions.
# Channels are automatically generated from nixpkgs inputs
# e.g the inputs which contain `legacyPackages` attribute are used.
channelsConfig.allowUnfree = true;
# Modules shared between all hosts
hostDefaults.modules = [
./modules/sharedConfigurationBetweenHosts.nix
];
### Hosts ###
# Machine using default channel (nixpkgs)
hosts.Hostname1.modules = [
./hosts/Hostname1.nix
];
# Machine using `unstable` channel
hosts.Hostname2 = {
channelName = "unstable";
modules = [
./hosts/Hostname2.nix
];
};
};
}