-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (45 loc) · 1.49 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
{
description = "NixOS configuration";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
nixpkgs-24_05.url = "nixpkgs/nixos-24.05";
nixpkgs-23_11.url = "nixpkgs/nixos-23.11";
#nixpkgs-23_05.url = "nixpkgs/nixos-23.05";
#nixpkgs-22_11.url = "nixpkgs/nixos-22.11";
#nixpkgs-22_05.url = "nixpkgs/nixos-22.05";
#nixpkgs-21_11.url = "nixpkgs/nixos-21.11";
#nixpkgs-21_05.url = "nixpkgs/nixos-21.05";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
disko.url = "github:nix-community/disko";
impermanence.url = "github:nix-community/impermanence";
agenix = {
url = "github:ryantm/agenix";
inputs = {
nixpkgs.follows = "nixpkgs";
darwin.follows = "";
};
};
hyprland.url = "github:hyprwm/Hyprland";
stylix.url = "github:danth/stylix";
};
outputs =
inputs@{ nixpkgs, ... }:
let
system = "x86_64-linux";
lib = nixpkgs.lib // import ./lib.nix { inherit inputs; };
nixpkgsInstances = lib.packageSets system;
pkgs = nixpkgsInstances.unstable;
config = import ./config.nix { inherit inputs pkgs lib; };
in
{
inherit inputs;
formatter.${system} = pkgs.nixfmt-rfc-style;
nixosConfigurations = import ./hosts { inherit inputs lib config; };
};
}