tangled
alpha
login
or
join now
matthew-hre.com
/
flake
0
fork
atom
My NixOS configuration (mirror)
0
fork
atom
overview
issues
pulls
pipelines
added gpu data to btop
matthew-hre.com
7 months ago
ce0256ae
3fee55a2
+21
-1
3 changed files
expand all
collapse all
unified
split
home
btop.nix
hosts
thwomp
configuration.nix
system
shared
services.nix
+16
home/btop.nix
···
1
1
{
2
2
+
pkgs,
3
3
+
lib,
4
4
+
...
5
5
+
}: {
2
6
programs.btop = {
3
7
enable = true;
8
8
+
package = pkgs.btop.overrideAttrs (old: rec {
9
9
+
buildInputs = (old.buildInputs or []) ++ [pkgs.rocmPackages.rocm-smi];
10
10
+
postFixup = lib.concatStringsSep "\n" [
11
11
+
(old.postFixup or "")
12
12
+
''
13
13
+
patchelf --add-rpath ${lib.getLib pkgs.rocmPackages.rocm-smi}/lib \
14
14
+
$out/bin/btop
15
15
+
''
16
16
+
];
17
17
+
});
18
18
+
4
19
settings = {
5
20
color_theme = "Dracula";
6
21
theme_background = false;
22
22
+
selected_gpus = "0";
7
23
};
8
24
};
9
25
}
+1
hosts/thwomp/configuration.nix
···
63
63
prismlauncher
64
64
protonup-qt
65
65
tidal-hifi
66
66
+
rocmPackages.rocm-smi
66
67
];
67
68
68
69
# This value determines the NixOS release from which the default
+4
-1
system/shared/services.nix
···
3
3
services.printing.enable = true;
4
4
5
5
# Enable OpenGL
6
6
-
hardware.graphics.enable = true;
6
6
+
hardware.graphics = {
7
7
+
enable = true;
8
8
+
enable32Bit = true;
9
9
+
};
7
10
8
11
# Configure keymap in X11
9
12
services.xserver.xkb = {