-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
96 lines (80 loc) · 2.11 KB
/
flake.nix
File metadata and controls
96 lines (80 loc) · 2.11 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
description = "Nix MacOS configurations";
outputs = inputs @ {
self,
nixpkgs,
darwinpkgs,
darwin,
brew,
hm,
disko,
preservation,
sops,
...
}: {
darwinConfigurations."snowmalus" = darwin.lib.darwinSystem {
specialArgs = {inherit inputs self;};
modules = [
brew.darwinModules.nix-homebrew
hm.darwinModules.home-manager
./hosts/snowmalus
];
};
nixosConfigurations = {
"shiverthorn" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
disko.nixosModules.disko
preservation.nixosModules.preservation
sops.nixosModules.sops
hm.nixosModules.home-manager
./hosts/shiverthorn
];
};
"winterberry" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
disko.nixosModules.disko
sops.nixosModules.sops
hm.nixosModules.home-manager
./hosts/winterberry
];
};
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
darwinpkgs.url = "github:NixOS/nixpkgs/nixpkgs-25.11-darwin";
darwin = {
url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
inputs.nixpkgs.follows = "darwinpkgs";
};
hm = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
brew.url = "github:zhaofengli/nix-homebrew";
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
preservation.url = "github:nix-community/preservation";
sops = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets = {
url = "git+ssh://git@github.com/Soikr/nix-secrets.git?ref=main&shallow=1";
flake = false;
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "hm";
};
};
};
}