-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
197 lines (180 loc) · 6.32 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
{
description = "Home Manager configuration of Doge Two";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
raspberry-pi-nix.url = "github:nix-community/raspberry-pi-nix";
nix-darwin = {
url = "nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-apple-silicon = {
url = "github:tpwrules/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixos-unstable";
};
hax-nur = {
url = "github:ihaveamac/nur-packages/staging";
# this is using nixos-unstable because of the kwin patch
inputs.nixpkgs.follows = "nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ nixpkgs, home-manager, jovian, nixos-unstable, nix-darwin
, hax-nur, spicetify-nix, nixos-apple-silicon, nixos-hardware, raspberry-pi-nix, ... }:
let
mkSpecialArgs = (me: system: {
inherit me inputs;
hax-nur = hax-nur.outputs.packages.${system};
});
in {
homeConfigurations.awill = home-manager.lib.homeManagerConfiguration (let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./home.nix ];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
}); # homeConfigurations.awill
darwinConfigurations = {
"Mac-Mini-2" = nix-darwin.lib.darwinSystem (let
me = "awill";
system = "aarch64-darwin";
in rec {
inherit system;
specialArgs = mkSpecialArgs me system;
modules = [ ./cfg-jvms.nix ];
});
};
nixosConfigurations.nixdeck = nixpkgs.lib.nixosSystem (let
system = "x86_64-linux";
#pkgs = nixpkgs.legacyPackages.${system};
in {
inherit system;
modules = [
./nixos-nixdeck/hardware-configuration.nix
./nixos-nixdeck/configuration.nix
jovian.nixosModules.jovian
{
jovian = {
steam = {
enable = true;
autoStart = true;
#desktopSession can be plasma or plasmawayland.
desktopSession = "plasma";
user = "deck";
};
devices.steamdeck = {
enable = true;
autoUpdate = true;
enableGyroDsuService = true;
enablePerfControlUdevRules = true;
enableSoundSupport = true;
enableControllerUdevRules = true;
enableXorgRotation = true; # should play with this later...
};
decky-loader = { enable = false; };
};
}
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.deck = { pkgs, ... }: {
imports = [ ./home.nix ];
home = {
username = pkgs.lib.mkForce "deck";
homeDirectory = pkgs.lib.mkForce /home/deck;
};
programs.home-manager.enable = pkgs.lib.mkForce false;
};
};
}
];
}); # nixosConfigurations.nixdeck
nixosConfigurations.Probook-650 = nixpkgs.lib.nixosSystem (let
system = "x86_64-linux";
#pkgs = nixpkgs.legacyPackages.${system};
in {
inherit system;
modules = [
./nixos-probook/hardware-configuration.nix
./nixos-probook/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.awill = { pkgs, ... }: {
imports = [ ./home.nix ];
home = {
username = pkgs.lib.mkForce "awill";
homeDirectory = pkgs.lib.mkForce /home/awill;
};
programs.home-manager.enable = pkgs.lib.mkForce false;
};
};
}
];
});
nixosConfigurations.Orion = nixpkgs.lib.nixosSystem
(let system = "aarch64-linux";
in {
inherit system;
modules = [
./nixos-macmini/configuration.nix
./nixos-macmini/hardware-configuration.nix
nixos-apple-silicon.nixosModules.apple-silicon-support
];
}); # nixosConfigurations.asahi-Orion
# nixosConfigurations.Framework
nixosConfigurations.Framework = nixpkgs.lib.nixosSystem (let
system = "x86_64-linux";
#pkgs = nixpkgs.legacyPackages.${system};
in {
inherit system;
specialArgs = mkSpecialArgs "awill" system;
modules = [
./nixos-framework/hardware-configuration.nix
./nixos-framework/configuration.nix
home-manager.nixosModules.home-manager
spicetify-nix.nixosModules.default
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users.awill = { pkgs, ... }: {
imports = [ ./home.nix ];
home = {
username = pkgs.lib.mkForce "awill";
homeDirectory = pkgs.lib.mkForce /home/awill;
};
programs.home-manager.enable = pkgs.lib.mkForce false;
};
};
}
];
}); # nixosConfigurations.Framework
nixosConfigurations.pifour-nixos = nixpkgs.lib.nixosSystem (let
system = "aarch64-linux";
#pkgs = nixpkgs.legacyPackages.${system};
in {
inherit system;
modules = [
./nixos-pifour/hardware-configuration.nix
./nixos-pifour/configuration.nix
raspberry-pi-nix.nixosModules.raspberry-pi
];
}); # nixosConfigurations.pifour-nixos
};
}