-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
77 lines (67 loc) · 1.88 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
{
description = "Kraanzu's NixOS config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
dooit.url = "github:kraanzu/dooit/develop";
dooit-extras.url = "github:dooit-org/dooit-extras";
grub2-themes.url = "github:vinceliuice/grub2-themes/2024-08-19";
mysecrets = {
url = "git+ssh://git@github.com/kraanzu/personal.git?ref=main&shallow=1";
flake = false;
};
mywalls = {
url = "github:kraanzu/nord_walls";
flake = false;
};
};
outputs = {
self,
nixpkgs,
nix-index-database,
home-manager,
mysecrets,
mywalls,
...
} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
default_config = {
inherit system;
config = {allowUnfree = true;};
};
pkgs = import nixpkgs default_config;
in {
packages = import ./pkgs pkgs;
devShells.x86_64-linux.default = pkgs.mkShell {};
nixosModules = import ./modules/nixos;
homeManagerModules = import ./modules/home-manager;
nixosConfigurations = {
nzxt = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs outputs mysecrets mywalls;
packages = outputs.packages;
};
modules = [
./hosts/nzxt
nix-index-database.nixosModules.nix-index
];
};
};
homeConfigurations = {
nzxt = home-manager.lib.homeManagerConfiguration {
pkgs = pkgs;
extraSpecialArgs = {
inherit inputs outputs mysecrets mywalls;
osConfig = outputs.nixosConfigurations.nzxt.config;
};
modules = [
./home/nzxt
];
};
};
};
}