-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
80 lines (70 loc) · 2 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
{
description = "Nixos config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/hyprland";
iio-hyprland.url = "github:caffeine01/hyprrot";
hyprpaper = {
url = "github:hyprwm/hyprpaper";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
hyprgrass = {
url = "github:matt1432/hyprgrass?ref=chase-cbox"; # change when merged
inputs.hyprland.follows = "hyprland";
};
nwg-drawer = {
url = "github:caffeine01/nwg-drawer?ref=nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.url = "github:nix-systems/default-linux";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
{
nixosCommonSystem = host: let
hostConfig = if host ? hostConfig then host.hostConfig else if host ? hostName then ./hosts/${host.hostName} else null;
in nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
home-manager.nixosModules.home-manager
./modules/isaac.nix
./modules/host.nix
./modules/libadwaita-without-adwaita.nix
{
inherit host;
imports = [ hostConfig ];
isaac.enable = true;
isaac.useHomeManager = true;
libadwaita-without-adwaita.enable = true;
}
];
};
nixosConfigurations = {
envy = self.nixosCommonSystem {
hostName = "envy";
common = true;
laptop = true;
ryzen = true;
};
aorus = self.nixosCommonSystem {
hostName = "aorus";
common = true;
laptop = false;
ryzen = true;
};
basedpad = self.nixosCommonSystem {
hostName = "basedpad";
common = true;
laptop = true;
ryzen = false;
};
};
};
}