-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
88 lines (65 loc) · 2.23 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-wine.url = "github:nixos/nixpkgs/b73c2221a46c13557b1b3be9c2070cc42cf01eb3";
generators.url = "github:nix-community/nixos-generators";
generators.inputs.nixpkgs.follows = "nixpkgs";
mrtnvgr = {
url = "github:mrtnvgr/nurpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-gaming.url = "github:fufexan/nix-gaming";
nix-colors.url = "github:Misterio77/nix-colors";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
schizofox.url = "github:schizofox/schizofox";
musnix.url = "github:musnix/musnix";
nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
ndsp-presets.url = "github:musicprodcdn/presets";
ndsp-presets.flake = false;
eggs.url = "https://github.com/mrtnvgr/eggs/releases/download/master/built.zip";
eggs.flake = false;
blog.url = "github:mrtnvgr/blog";
blog.flake = false;
jsfx-geraint.url = "github:musicprodcdn/geraintluff-jsfx";
jsfx-geraint.flake = false;
jsfx-rejj.url = "github:musicprodcdn/ReJJ-jsfx";
jsfx-rejj.flake = false;
jsfx-chkhld.url = "github:musicprodcdn/chkhld-jsfx";
jsfx-chkhld.flake = false;
reascripts.url = "github:ReaTeam/ReaScripts";
reascripts.flake = false;
};
outputs = { nixpkgs, ... } @ inputs:
let
colorschemes = import ./colorschemes;
mkSystem = user: hostname:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs colorschemes user hostname; };
modules = [
./core
./modules
./hosts/${hostname}/hardware.nix
./hosts/${hostname}
];
};
in
{
nixosConfigurations = {
# <hostname> = mkSystem <username> <hostname>;
# Desktops
nixie = mkSystem "user" "nixie";
thlix = mkSystem "user" "thlix";
minix = mkSystem "user" "minix";
# Servers
cloud = mkSystem "user" "cloud";
};
};
}