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

View file

@ -1,14 +1,10 @@
{
config,
pkgs,
callPackage,
lib,
username,
settings,
...
}: {
#important stuff first
imports = [
../modules/amd.nix
../modules/packages.nix
../modules/boot.nix
../modules/fonts.nix
@ -18,29 +14,31 @@
../modules/xserver.nix
../modules/smb.nix
../modules/zsh.nix
../modules/git.nix
#../modules/mining.nix
../modules/parrot.nix
];
networking.hostName = "gerg-desktop";
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.amd.updateMicrocode = true;
#end important stuff
environment.systemPackages = with pkgs; [
#afk-cmds
xmrig
t-rex-miner
vscodium
gimp
];
#user managment
users = {
defaultUserShell = pkgs.zsh;
users."${username}" = {
users."${settings.username}" = {
isNormalUser = true;
extraGroups = ["wheel" "audio" "networkmanager" "kvm" "libvirtd"];
};
};
boot = {
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod"];
kernelModules = ["kvm-amd" "msr"];
kernelParams = ["iomem=relaxed" "msr.allow_writes=on"];
initrd = {
kernelModules = ["amdgpu"];
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod"];
};
};
fileSystems = {
@ -53,34 +51,4 @@
fsType = "vfat";
};
};
#discord bot stuff
virtualisation.docker.enable = false;
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";
serviceConfig = {
EnvironmentFile = "/home/${username}/parrot/.env";
};
};
#mining stuff
systemd.services.mining = {
enable = false;
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
wants = ["graphical.target"];
script = ''
afk-cmds -c /home/${username}/afk-cmds.json
'';
environment = {
# PATH="/run/current-system/sw/bin"; missing something with dbus
XAUTHORITY = "/home/${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";
};
};
}