-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
61 lines (61 loc) · 1.59 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
system = "x86_64-linux";
inherit (nixpkgs.lib) filesystem;
pkgs = import nixpkgs {
inherit system;
# overlays = builtins.map (x: import x) (filesystem.listFilesRecursive ./overlays);
config.allowUnfree = true;
};
user = "zaer1n";
in {
packages.${system} = filesystem.packagesFromDirectoryRecursive {
inherit (pkgs) callPackage;
directory = ./pkgs;
};
nixosConfigurations."nixos" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs system user;};
modules = [
./nixos/configuration.nix
];
};
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs system user;};
modules =
(filesystem.listFilesRecursive ./home)
++ [
inputs.stylix.homeManagerModules.stylix
];
};
};
}