-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
95 lines (91 loc) · 2.83 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
83
84
85
86
87
88
89
90
91
92
93
94
95
{
description = "OhMyMndy's Dotfiles!";
nixConfig = {
extra-substituters = ["https://nix-community.cachix.org"];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-previous.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixpkgs-staging.url = "github:nixos/nixpkgs/staging";
home-manager = {
url = "github:nix-community/home-manager/master"; #release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
nixpkgs-previous,
nixpkgs-unstable,
nixpkgs-master,
nixpkgs-staging,
home-manager,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
stable-pkgs = import nixpkgs {
config.allowUnfree = true;
inherit system;
};
unstable-pkgs = import nixpkgs-unstable {
config.allowUnfree = true;
inherit system;
};
previous-pkgs = import nixpkgs-previous {
config.allowUnfree = true;
inherit system;
};
master-pkgs = import nixpkgs-master {
config.allowUnfree = true;
inherit system;
};
staging-pkgs = import nixpkgs-staging {
config.allowUnfree = true;
inherit system;
};
pkgs =
stable-pkgs
// {
# provides alias for all unstable pkgs SEE: https://rexk.github.io/en/blog/nix-home-manager-flake-setup/
previous = previous-pkgs;
unstable = unstable-pkgs;
master = master-pkgs;
staging = staging-pkgs;
# neovim = unstable-pkgs.neovim;
# neovim-unwrapped = unstable-pkgs.neovim-unwrapped;
};
le-just = pkgs.callPackage ./packages/just/default.nix {};
in {
apps = {
home-manager = flake-utils.lib.mkApp {drv = pkgs.home-manager;};
just = flake-utils.lib.mkApp {drv = le-just;};
nixpkgs-fmt = flake-utils.lib.mkApp {drv = pkgs.nixpkgs-fmt;};
};
packages = {
homeConfigurations = {
"cli" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [./home-manager/cli];
extraSpecialArgs = {
inherit pkgs;
};
};
"gui" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [./home-manager/gui];
extraSpecialArgs = {
inherit pkgs;
};
};
};
};
}
);
}