-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
110 lines (96 loc) · 2.73 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
description = "Nix config /w home-manager and flakes";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland/v0.45.2";
};
sops-nix.url = "github:Mic92/sops-nix";
nix-colors.url = "github:misterio77/nix-colors";
};
outputs = inputs @ {
self,
nixpkgs,
...
}: let
inherit (self) outputs;
lib = import ./lib {inherit inputs;};
inherit (lib) mkSystem mkHome forAllSystems;
in {
nixosModules = import ./system/modules;
homeModules = import ./home/mario/modules;
overlays = import ./overlays {inherit inputs outputs;};
formatter = forAllSystems (
system:
nixpkgs.legacyPackages.${system}.alejandra
);
packages = forAllSystems (
system:
import ./packages {pkgs = nixpkgs.legacyPackages.${system};}
);
devShells = forAllSystems (
system:
import ./shell.nix {pkgs = nixpkgs.legacyPackages.${system};}
);
wallpapers = import ./wallpapers;
nixosConfigurations = {
quietfrost = mkSystem {
hostname = "quietfrost";
system = "x86_64-linux";
stateVersion = "22.05";
};
mate = mkSystem {
hostname = "mate";
system = "x86_64-linux";
stateVersion = "22.05";
};
mli-pc = mkSystem {
hostname = "mli-pc";
system = "x86_64-linux";
stateVersion = "23.05";
};
};
homeConfigurations = {
"mario@quietfrost" = mkHome {
username = "mario";
hostname = "quietfrost";
system = "x86_64-linux";
stateVersion = "22.05";
};
"mario@mate" = mkHome {
username = "mario";
hostname = "mate";
system = "x86_64-linux";
stateVersion = "22.05";
};
"mario@mli-pc" = mkHome {
username = "mario";
hostname = "mli-pc";
system = "x86_64-linux";
stateVersion = "23.05";
};
};
};
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://nixpkgs-wayland.cachix.org"
"https://nix-community.cachix.org"
"https://hyprland.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
}