-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
30 lines (29 loc) · 1.08 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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.disko.url = "github:nix-community/disko";
inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.url = "github:nix-community/home-manager/release-24.11";
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
outputs = { nixpkgs, nixpkgs-unstable, disko, home-manager, ... }: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
nixosConfigurations = {
ax52 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
home-manager.nixosModules.home-manager
./hosts/ax52/configuration.nix
# Make nixpkgs-unstable available to our configuration
({ pkgs, ... }: {
nixpkgs.overlays = [
(final: prev: {
github-runner-unstable = nixpkgs-unstable.legacyPackages.x86_64-linux.github-runner;
})
];
})
];
};
};
};
}