-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
165 lines (152 loc) · 5.21 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
{
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";
nix-darwin = {
url = "nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
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, ... }:
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" = 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.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
};
}