updated parrot

and removed old mining module
This commit is contained in:
Gerg-L 2023-03-08 19:42:41 -05:00
parent 8f75d166da
commit f7adbbcc4e
4 changed files with 14 additions and 32 deletions

View file

@ -10,7 +10,6 @@ inputs: {
(import ./vfio.nix inputs)
(import ./parrot.nix inputs)
(import ./spicetify.nix inputs)
#(import ./mining.nix inputs)
(import ./zfs inputs)
(import ./containers inputs)
];

View file

@ -1,27 +0,0 @@
_: {
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}/saveme/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";
};
};
}

View file

@ -6,11 +6,10 @@ _: {
#discord bot stuff
systemd.services.parrot = {
enable = true;
path = with pkgs; [parrot yt-dlp ffmpeg];
wantedBy = ["multi-user.target"];
wants = ["NetworkManager-wait-online.service"];
after = ["NetworkManager-wait-online.service"];
script = "parrot";
wants = ["network-online.target"];
after = ["network-online.target"];
script = "${pkgs.parrot}/bin/parrot";
serviceConfig = {
EnvironmentFile = config.sops.secrets.discordenv.path;
Restart = "on-failure";