-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·148 lines (129 loc) · 4.29 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
description = "Main flake for all workstations managed by Reboot/Fitz.";
# Enable the community cachix to build less stuff
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flatpaks = {
url = "github:GermanBread/declarative-flatpak/stable-v3";
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = github:nix-community/NUR;
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
aagl = {
url = "github:ezKEa/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixGL = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, flatpaks, rust-overlay, nur, chaotic, aagl, nixGL }: {
nixosConfigurations = {
"ressd-loki-nixos" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
# The `specialArgs` parameter passes the
# non-default nixpkgs instances to other nix modules
specialArgs = {
# To use packages from nixpkgs-stable,
# we configure some parameters for it first
pkgs-stable = import nixpkgs-stable {
# Refer to the `system` parameter from
# the outer scope recursively
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11" # Allows logseq stable. Annoying.
];
};
};
inherit rust-overlay;
inherit nixGL;
};
modules = [
# Imported Flakes
{
nixpkgs.overlays = [
nixGL.overlays.default
];
}
home-manager.nixosModules.home-manager
flatpaks.nixosModules.declarative-flatpak
nur.nixosModules.nur
chaotic.nixosModules.default
# https://github.com/ezKEa/aagl-gtk-on-nix
{
imports = [ aagl.nixosModules.default ];
nix.settings = aagl.nixConfig; # Set up Cachix
}
./hosts/ressd-loki-nixos/default.nix # Our Configs
];
};
"latitude7390-loki-nixos" = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
# The `specialArgs` parameter passes the
# non-default nixpkgs instances to other nix modules
specialArgs = {
# To use packages from nixpkgs-stable,
# we configure some parameters for it first
pkgs-stable = import nixpkgs-stable {
# Refer to the `system` parameter from
# the outer scope recursively
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11" # Allows logseq stable. Annoying.
];
};
};
inherit rust-overlay;
inherit nixGL;
};
modules = [
# Imported Flakes
{
nixpkgs.overlays = [
nixGL.overlays.default
];
}
home-manager.nixosModules.home-manager
flatpaks.nixosModules.declarative-flatpak
nur.nixosModules.nur
chaotic.nixosModules.default
# https://github.com/ezKEa/aagl-gtk-on-nix
{
imports = [ aagl.nixosModules.default ];
nix.settings = aagl.nixConfig; # Set up Cachix
}
./hosts/latitude7390-loki-nixos/default.nix # Our Configs
];
};
};
# For *nix systems that are not NixOS or macOS
homeConfigurations = {
"reboot" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [ ./hosts/generic-amd64-linux-gui/default.nix ];
};
};
};
}