tangled
alpha
login
or
join now
ovyerus.com
/
dotfiles
1
fork
atom
Nix configurations for my personal machines (Linux & macOS)
1
fork
atom
overview
issues
pulls
pipelines
feat: add dw-proton
ovyerus.com
1 month ago
56f09b6b
611dfbc8
verified
This commit was signed with the committer's
known signature
.
ovyerus.com
SSH Key Fingerprint:
SHA256:mXbp9WNBIT0nRNe28t2hrxfSwnSX7UBeW2DVlIyf0uw=
+42
-34
2 changed files
expand all
collapse all
unified
split
flake.nix
modules
gaming.nix
+7
-2
flake.nix
···
41
41
inputs.home-manager.follows = "home-manager";
42
42
};
43
43
44
44
-
zen-browser = {
45
45
-
url = "github:youwen5/zen-browser-flake";
44
44
+
dw-proton = {
45
45
+
url = "github:imaviso/dwproton-flake";
46
46
inputs.nixpkgs.follows = "nixpkgs";
47
47
};
48
48
+
49
49
+
# zen-browser = {
50
50
+
# url = "github:youwen5/zen-browser-flake";
51
51
+
# inputs.nixpkgs.follows = "nixpkgs";
52
52
+
# };
48
53
};
49
54
50
55
outputs = {
+35
-32
modules/gaming.nix
···
2
2
delib,
3
3
pkgs,
4
4
homeConfig,
5
5
+
inputs,
5
6
...
6
6
-
}:
7
7
-
delib.module {
8
8
-
name = "gaming";
7
7
+
}: let
8
8
+
dw-proton = inputs.dw-proton.packages.${pkgs.stdenv.hostPlatform.system}.default;
9
9
+
in
10
10
+
delib.module {
11
11
+
name = "gaming";
9
12
10
10
-
options = delib.singleEnableOption true;
13
13
+
options = delib.singleEnableOption true;
11
14
12
12
-
nixos.ifEnabled = {
13
13
-
programs.steam = {
14
14
-
enable = true;
15
15
-
remotePlay.openFirewall = true;
16
16
-
localNetworkGameTransfers.openFirewall = true;
17
17
-
extraCompatPackages = [pkgs.proton-ge-bin];
15
15
+
nixos.ifEnabled = {
16
16
+
programs.steam = {
17
17
+
enable = true;
18
18
+
remotePlay.openFirewall = true;
19
19
+
localNetworkGameTransfers.openFirewall = true;
20
20
+
extraCompatPackages = [pkgs.proton-ge-bin dw-proton];
21
21
+
};
22
22
+
23
23
+
programs.gamescope.enable = true;
24
24
+
programs.gamemode.enable = true;
18
25
};
19
26
20
20
-
programs.gamescope.enable = true;
21
21
-
programs.gamemode.enable = true;
22
22
-
};
23
23
-
24
24
-
home.ifEnabled = {
25
25
-
programs.mangohud = {
26
26
-
enable = true;
27
27
-
settings = {
28
28
-
cpu_temp = true;
29
29
-
cpu_mhz = true;
30
30
-
cpu_power = true;
31
31
-
core_load = true;
32
32
-
gpu_core_clock = true;
33
33
-
gpu_temp = true;
34
34
-
gpu_power = true;
35
35
-
gpu_fan = true;
36
36
-
gpu_voltage = true;
37
37
-
vram = true;
38
38
-
ram = true;
27
27
+
home.ifEnabled = {
28
28
+
programs.mangohud = {
29
29
+
enable = true;
30
30
+
settings = {
31
31
+
cpu_temp = true;
32
32
+
cpu_mhz = true;
33
33
+
cpu_power = true;
34
34
+
core_load = true;
35
35
+
gpu_core_clock = true;
36
36
+
gpu_temp = true;
37
37
+
gpu_power = true;
38
38
+
gpu_fan = true;
39
39
+
gpu_voltage = true;
40
40
+
vram = true;
41
41
+
ram = true;
42
42
+
};
39
43
};
44
44
+
home.sessionVariables.MANGOHUD_CONFIGFILE = "${homeConfig.xdg.configHome}/MangoHud/MangoHud.conf";
40
45
};
41
41
-
home.sessionVariables.MANGOHUD_CONFIGFILE = "${homeConfig.xdg.configHome}/MangoHud/MangoHud.conf";
42
42
-
};
43
43
-
}
46
46
+
}