-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
82 lines (71 loc) · 1.98 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
79
80
81
82
{
description = "Ludovic Ortega Nix configuration";
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
home-manager-stable = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
home-manager-unstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
hyprpanel = {
url = "github:M0NsTeRRR/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
};
outputs =
{
self,
nixpkgs-stable,
nixpkgs-unstable,
lix-module,
home-manager-stable,
home-manager-unstable,
hyprpanel,
...
}@inputs:
let
username = "lortega";
hostNames = [
"laptop"
"desktop"
];
system = "x86_64-linux";
lib = nixpkgs-stable.lib;
pkgs = nixpkgs-stable.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
in
{
formatter.x86_64-linux = pkgs.nixfmt-rfc-style;
nixosConfigurations = lib.genAttrs hostNames (
hostName:
lib.nixosSystem {
inherit system;
specialArgs = {
inherit hostName username pkgs-unstable;
} // inputs;
modules = [ ./. ];
}
);
templates.default = {
path = ./.;
description = "The default template for Ludovic Ortega nixflakes.";
};
};
}