added formatter and reformated

This commit is contained in:
ISnortPennies 2023-01-19 18:51:32 -05:00
parent 733eda4798
commit e1987d6461
24 changed files with 286 additions and 284 deletions

View file

@ -1,6 +1,6 @@
{ config, pkgs, callPackage, lib, username, ... }:
{
#important stuff first
#important stuff first
imports =
[
../modules/amd.nix
@ -16,15 +16,15 @@
];
networking.hostName = "gerg-desktop";
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.amd.updateMicrocode = true;
#end important stuff
hardware.cpu.amd.updateMicrocode = true;
#end important stuff
environment.systemPackages = with pkgs; [
#afk-cmds
xmrig
t-rex-miner
vscodium
#afk-cmds
xmrig
t-rex-miner
vscodium
];
#user managment
#user managment
users = {
defaultUserShell = pkgs.zsh;
users."${username}" = {
@ -34,12 +34,12 @@
};
boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
kernelModules = [ "kvm-amd" "msr"];
kernelModules = [ "kvm-amd" "msr" ];
kernelParams = [ "iomem=relaxed" "msr.allow_writes=on" ];
};
fileSystems = {
"/" ={
"/" = {
device = "/dev/disk/by-uuid/e5c9634f-0273-4fd3-b35f-49899984340f";
fsType = "ext4";
};
@ -52,18 +52,18 @@
#mining stuff
systemd.services.mining = {
enable = false;
path = with pkgs; [t-rex-miner afk-cmds st zsh dbus xmrig];
path = with pkgs; [ t-rex-miner afk-cmds st zsh dbus xmrig ];
wantedBy = [ "graphical.target" ];
script = ''
afk-cmds -c /home/gerg/afk-cmds.json
'';
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";
# 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";
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, callPackage, lib, ... }:
{ config, pkgs, callPackage, lib, username, ... }:
{
#important stuff first
imports =
@ -14,18 +14,18 @@
];
networking.hostName = "gerg-laptop";
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.cpu.amd.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode = true;
# end important stuff
environment.systemPackages = with pkgs; [
xorg.xf86videoamdgpu
];
# user managment
# user managment
users = {
defaultUserShell = pkgs.zsh;
users.gerg = {
users."${username}" = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "networkmanager"];
extraGroups = [ "wheel" "audio" "networkmanager" ];
};
};
boot = {
@ -33,7 +33,7 @@
kernelModules = [ "kvm-amd" ];
};
fileSystems = {
"/" = {
"/" = {
device = "/dev/disk/by-uuid/c67796b3-d502-47db-8d0e-48f30bc91041";
fsType = "ext4";
};