-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
61 lines (56 loc) · 1.55 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
description = "Nick's NixOS";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Lix
# Note that this assumes you have a flake-input called nixpkgs,
# which is often the case. If you've named it something else,
# you'll need to change the `nixpkgs` below.
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-2.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.follows = "nixos-cosmic/nixpkgs";
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
};
outputs =
{
self,
nixpkgs,
lix-module,
nixos-cosmic,
...
}@inputs:
let
inherit (self) outputs;
lib = nixpkgs.lib;
in
{
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
# Personal laptop
hermes = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/hermes
lix-module.nixosModules.default
{
nix.settings = {
substituters = [
"https://cache.nixos.org/"
"https://cosmic.cachix.org/"
];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
}
nixos-cosmic.nixosModules.default
];
specialArgs = {
inherit inputs outputs;
};
};
};
};
}