-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
78 lines (78 loc) · 1.93 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
inputs = {
lix = {
url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
flake = false;
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
inputs.lix.follows = "lix";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
secrets = {
url = "git+ssh://[email protected]/ozmodeuz/sops.git?shallow=1&ref=main";
flake = false;
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, lix, lix-module, nixpkgs, secrets, sops-nix, stylix, ... }@inputs:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
overlays = [
(import ./overlays/mcman.nix)
];
};
};
in
{
nixosConfigurations = {
book = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/book
./shared
stylix.nixosModules.stylix
];
};
box = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/box
];
};
ozpc = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/ozpc
./shared
stylix.nixosModules.stylix
];
};
think = lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./hosts/think
./shared
stylix.nixosModules.stylix
];
};
};
};
}