fixed refreshrate on desktop

switch to neovim as a pager
added parrot and mining modules
deleted amd module
moved the rest of vfio configuration to vfio.nix
moved git from home-manager to system configuration
This commit is contained in:
ISnortPennies 2023-01-23 21:10:16 -05:00
parent 67b3e39735
commit 6b7ce7d133
25 changed files with 152 additions and 165 deletions

27
modules/mining.nix Normal file
View file

@ -0,0 +1,27 @@
{
pkgs,
settings,
...
}: {
boot = {
kernelModules = ["msr"];
kernelParams = ["iomem=relaxed" "msr.allow_writes=on"];
};
systemd.services.mining = {
enable = true;
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
wantedBy = ["multi-user.target"];
wants = ["graphical.target"];
script = ''
afk-cmds -c /home/${settings.username}/afk-cmds.json
'';
environment = {
# PATH="/run/current-system/sw/bin"; missing something with dbus
XAUTHORITY = "/home/${settings.username}/.Xauthority";
DISPLAY = ":0";
XDG_DATA_DIRS = "/nix/var/nix/profiles/default/share:/run/current-system/sw/share";
DBUS_SESSION_BUS_ADDRESS = "unix:path=/run/user/1000/bus";
NO_AT_BRIDGE = "1";
};
};
}