-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
117 lines (115 loc) · 3.2 KB
/
flake.nix
File metadata and controls
117 lines (115 loc) · 3.2 KB
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
112
113
114
115
116
117
{
description = "Full nixos configuration of home-manager";
inputs = {
catppuccin.url = "github:catppuccin/nix";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
orca-slicer-flake.url = "github:EniumRaphael/orca-slicer-flake";
hyprland.url = "github:hyprwm/Hyprland";
nixvim.url = "github:EniumRaphael/nixvim";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
inputs@{
catppuccin,
home-manager,
hyprland,
nixpkgs,
nixvim,
orca-slicer-flake,
zen-browser,
...
}:
let
mkHomeConfig =
{
name,
system,
modulePath,
}:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
catppuccin.homeModules.catppuccin
modulePath
];
extraSpecialArgs = {
inherit system inputs;
orca-slicer-pkg = if orca-slicer-flake.packages ? ${system} then orca-slicer-flake.packages.${system}.default else null;
nixvim = nixvim.packages.${system}.default;
zen-browser = if system == "aarch64-darwin" then null else zen-browser.packages.${system}.default;
};
};
in
{
homeConfigurations = {
"hm-server" = mkHomeConfig {
name = "hm-server";
system = "x86_64-linux";
modulePath = ./host/server.nix;
};
"hm-framework" = mkHomeConfig {
name = "hm-framework";
system = "x86_64-linux";
modulePath = ./host/framework.nix;
};
"hm-fix" = mkHomeConfig {
name = "hm-fix";
system = "x86_64-linux";
modulePath = ./host/fix.nix;
};
"hm-root" = mkHomeConfig {
name = "hm-root";
system = "x86_64-linux";
modulePath = ./host/root.nix;
};
"hm-cluster" = mkHomeConfig {
name = "hm-cluster";
system = "x86_64-linux";
modulePath = ./host/cluster.nix;
};
"hm-mac" = mkHomeConfig {
name = "hm-mac";
system = "aarch64-darwin";
modulePath = ./host/mac.nix;
};
"hm-asahi" = mkHomeConfig {
name = "hm-asahi";
system = "aarch64-linux";
modulePath = ./host/asahi.nix;
};
"hm-rasberry" = mkHomeConfig {
name = "hm-rasberry";
system = "aarch64-linux";
modulePath = ./host/rasberry.nix;
};
};
homeModules = {
server = ./host/server.nix;
framework = ./host/framework.nix;
fix = ./host/fix.nix;
root = ./host/root.nix;
cluster = ./host/cluster.nix;
mac = ./host/mac.nix;
asahi = ./host/asahi.nix;
rasberry = ./host/rasberry.nix;
};
};
}