-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
47 lines (38 loc) · 1.15 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
{
description = "cib's nix config";
inputs = {
aagl.url = "github:ezKEa/aagl-gtk-on-nix/release-24.05";
aagl.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/nur/master";
};
outputs = { self, ... }@inputs: let
mkHost = module: inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.replicant
module
];
specialArgs = {
inherit inputs;
username = "robinb";
unstable-pkgs = import inputs.nixpkgs-unstable {
config.allowUnfree = true;
system = "x86_64-linux";
};
};
};
in {
nixosConfigurations = {
hana = mkHost ./hosts/pc-hana;
yeoreum = mkHost ./hosts/pc-yeoreum;
};
nixosModules = {
chiral = import ./modules/chiral;
replicant = import ./modules/replicant;
};
};
}