-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (47 loc) · 1.39 KB
/
flake.nix
File metadata and controls
49 lines (47 loc) · 1.39 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
{
description = "The Official NixOS flake for the Linux Club of Case Western Reserve University";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
disko = {
# Declaratively manages our disk partitions
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
disko,
...
}:
{
nixosConfigurations =
let
modules = [
./hosts # Holds the 'host' configurations; i.e. the configurations for each machine (HARDWARE BASED)
./modules # Holds the 'module' configurations; i.e. the configurations for each service.
./users # Holds the 'user' configurations; i.e. the configurations for each user.
disko.nixosModules.disko
{
nixpkgs.overlays = [
(_final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
})
];
}
];
in
{
cwrunix-0 = nixpkgs.lib.nixosSystem {
# Our flagship server, cwrunix-0.
specialArgs = {
hostname = "cwrunix-0";
};
system = "x86_64-linux";
inherit modules;
};
};
};
}