forked from namishh/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
62 lines (61 loc) · 2.15 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
{
description = "i have no idea how this works";
inputs = {
# Package sources.
master.url = "github:nixos/nixpkgs/master";
stable.url = "github:nixos/nixpkgs/nixos-22.11";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
nur.url = "github:nix-community/NUR";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland";
spicetify-nix.url = "github:the-argus/spicetify-nix";
nixpkgs-f2k.url = "github:moni-dz/nixpkgs-f2k";
nix-gaming.url = "github:fufexan/nix-gaming";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
# Channel to follow.
home-manager.inputs.nixpkgs.follows = "unstable";
nixpkgs.follows = "unstable";
};
outputs = { self, nixpkgs, home-manager, hyprland, hyprland-plugins, ... } @inputs:
let
inherit (self) outputs;
forSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in
{
overlays = import ./overlays { inherit inputs; };
# host configurations
nixosConfigurations = {
frostbyte = nixpkgs.lib.nixosSystem
{
specialArgs = {
inherit inputs outputs home-manager hyprland hyprland-plugins;
};
modules = [
# > Our main nixos configuration file <
home-manager.nixosModule
./hosts/frostbyte/configuration.nix
];
};
};
home-manager = home-manager.packages.${nixpkgs.system}."home-manager";
# user configurations
homeConfigurations = {
namish = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs home-manager self; };
modules = [
./home/namish/home.nix
];
};
};
frostbyte = self.nixosConfigurations.frostbyte.config.system.build.toplevel;
};
}