-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
91 lines (84 loc) · 2.3 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
{
description = "Mslxl's NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
nix-colors.url = "github:misterio77/nix-colors";
nix-on-droid = {
url = "github:nix-community/nix-on-droid";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/nixos-wsl";
inputs.nixpkgs.follows = "nixpkgs";
};
nur-mslxl = {
url = "github:mslxl/nur-pkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
secrets = {
url = "git+ssh://[email protected]/mslxl/secrets.git?shallow=1";
flake = false;
};
yazi.url = "github:sxyazi/yazi";
ayugram-desktop.url = "github:/ayugram-port/ayugram-desktop/release?submodules=1";
# home-manager, used for managing user configuration
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
# do you like emacs :)
doomemacs = {
url = "github:doomemacs/doomemacs";
flake = false;
};
wallpapers = {
url = "github:mslxl/wallpapers";
flake = false;
};
hyprland = {
url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
inputs.nixpkgs.follows = "nixpkgs";
};
waybar = {
url = "github:Alexays/Waybar";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
home-manager,
...
} @ inputs: let
constants = import ./constants.nix;
forEachSystem = func: (nixpkgs.lib.genAttrs constants.allSystems func);
allSystemConfigurations = import ./systems {inherit self inputs constants;};
in
allSystemConfigurations
// {
formatter = forEachSystem (
system: nixpkgs.legacyPackages.${system}.alejandra
);
devShells = forEachSystem (system: let
devPkgs = import inputs.nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in {
default = devPkgs.mkShell {
packages = with devPkgs; [
just
];
};
});
};
}