-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
111 lines (102 loc) · 3.07 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
111
{
description = "A very basic flake";
inputs = {
nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
#url = "github:hyprwm/Hyprland/v0.41.1?submodules=1";
url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; #&rev=918d8340afd652b011b937d29d5eea0be08467f5";
#url = "github:hyprwm/Hyprland";
#inputs.nixpkgs.follows = "nixpkgs";
};
rose-pine-hyprcursor = {
url = "github:ndom91/rose-pine-hyprcursor";
inputs.nixpkgs.follows = "nixpkgs";
};
Hyprspace = {
url = "github:KZDKM/Hyprspace";
#url = "github:ReshetnikovPavel/Hyprspace";
# Hyprspace uses latest Hyprland. We declare this to keep them in sync.
inputs.hyprland.follows = "hyprland";
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-extra-modules = {
url = "github:oddlama/nixos-extra-modules";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
pyprland = {
url = "github:hyprland-community/pyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nixvim = {
url = "github:nix-community/nixvim";
#inputs.nixpkgs.follows = "nixpkgs";
};
naersk.url = "github:nix-community/naersk";
earbuds-src = {
url = "github:JojiiOfficial/LiveBudsCli?rev=1690eab9116dc9fb576372a7cd234cc28de0a112";
flake = false;
};
waybar-custom-modules-src = {
url = "github:LawnGnome/waybar-custom-modules?rev=5e7713180e52285e3db169ba7d448ab61215ac41";
flake = false;
};
};
outputs = inputs @ {
self,
nixpkgs,
home-manager,
...
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in {
nixosConfigurations = {
kotn = nixpkgs.lib.nixosSystem {
specialArgs = {
inherit system;
inherit inputs;
};
modules = [
./hardware-configuration.nix
./config
# inputs.home-manager.nixosModule.default
home-manager.nixosModules.home-manager
{
home-manager.extraSpecialArgs = {inherit inputs;};
home-manager.sharedModules = [
# inputs.nixos-extra-modules.homeManagerModules.default
inputs.nix-index-database.hmModules.nix-index
inputs.nixvim.homeManagerModules.nixvim
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
#home-manager.users.clotodex = {
# imports = [
# ./home.nix
# ./shell/default.nix
#];};
}
];
};
};
};
}