-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·59 lines (49 loc) · 1.45 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
{
description = "Joey's NixOS configuration";
inputs = {
disko = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/disko/latest";
};
firefox-gnome-theme = {
flake = false;
url = "github:rafaelmardojai/firefox-gnome-theme/v133";
};
haumea = {
url = "github:nix-community/haumea/v0.2.2";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager/release-24.11";
};
lanzaboote = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/lanzaboote/v0.4.1";
};
nix-vscode-extensions = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/nix-vscode-extensions";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
sops-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:Mic92/sops-nix";
};
};
outputs = inputs @ { disko, haumea, home-manager, nixpkgs, self, sops-nix, ... }:
let
loadDir = path: haumea.lib.load {
loader = haumea.lib.loaders.path;
src = path;
};
custom-modules = {
home = loadDir ./home-manager;
nixos = loadDir ./nixos;
};
in
{
nixosConfigurations = import ./nixos.nix { inherit custom-modules disko home-manager inputs nixpkgs sops-nix; };
};
}