-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
58 lines (55 loc) · 1.5 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
nixpkgs-gnome-42.url = "github:NixOS/nixpkgs/nixos-22.05"; # For gnome 42 extensions (Pop OS uses gnome 42)
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixgl.url = "github:nix-community/nixGL";
rust-overlay.url = "github:oxalica/rust-overlay";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
nixpkgs-gnome-42,
home-manager,
nixgl,
rust-overlay,
}: let
system = "x86_64-linux";
config = {
allowUnfree = true;
};
pkgs = import nixpkgs {
inherit system config;
overlays = [
nixgl.overlay
rust-overlay.overlays.default
(_final: prev: {
unstable = import nixpkgs-unstable {
inherit (prev) system;
inherit config;
};
gnome42 = import nixpkgs-gnome-42 {
inherit (prev) system;
inherit config;
};
})
];
};
in {
homeConfigurations."tangtang" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [./home.nix];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
inherit home-manager;
inherit (home-manager) packages;
};
}