From 557e84f9644f7942a8f5ffe98fcb3d7d81f7d5e6 Mon Sep 17 00:00:00 2001 From: Paul Hartman Date: Tue, 14 Jan 2025 17:05:59 -0600 Subject: [PATCH] this may be ugly. --- hosts/latitude/configuration.nix | 43 +++++++++++++++ hosts/legion/configuration.nix | 91 +++++++++++++++++++++++++++++--- hosts/nas/configuration.nix | 2 + 3 files changed, 130 insertions(+), 6 deletions(-) diff --git a/hosts/latitude/configuration.nix b/hosts/latitude/configuration.nix index ecfef2f..5c44e6f 100644 --- a/hosts/latitude/configuration.nix +++ b/hosts/latitude/configuration.nix @@ -19,6 +19,49 @@ ]; }; + # System mounts +fileSystems."/mnt/nas/OldNas" = { + device = "//192.168.1.194/OldNas"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; + +fileSystems."/mnt/nas/media" = { + device = "//192.168.1.194/media"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; + +fileSystems."/mnt/nas/tvshows" = { + device = "//192.168.1.194/TV-Shows"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; + # UPDATE YOUR FUCKING ELECTRON APPS GUYS!!! nixpkgs.config.permittedInsecurePackages = [ diff --git a/hosts/legion/configuration.nix b/hosts/legion/configuration.nix index 977ddf0..8574079 100644 --- a/hosts/legion/configuration.nix +++ b/hosts/legion/configuration.nix @@ -18,7 +18,50 @@ "/nix/var/nix/profiles/per-user/root/channels" ]; }; - boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_6; + +# System mounts +fileSystems."/mnt/nas/OldNas" = { + device = "//192.168.1.194/OldNas"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; + +fileSystems."/mnt/nas/media" = { + device = "//192.168.1.194/media"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; + +fileSystems."/mnt/nas/tvshows" = { + device = "//192.168.1.194/TV-Shows"; + fsType = "cifs"; + options = [ + "noperm" + "defaults" + "users" + "credentials=/home/paul/.smbcredentials" + "uid=100" + "noauto" + "x-systemd.automount" + ]; +}; +# boot.kernelPackages = pkgs.linuxKernel.packages.linux_6_6; boot.kernelModules = ["drivetemp"]; # Enable experimental Feature nix.settings.experimental-features = ["nix-command" "flakes"]; @@ -247,6 +290,8 @@ environment.systemPackages = with pkgs; [ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. ## Printer Drivers + cpuminer +# electrum-ltc brlaser ## CLI Utils tmux @@ -255,9 +300,11 @@ micro gitFull glxinfo - boinc +# boinc boinctui htop + btop +# cgminer #oraclejre temurin-jre-bin-17 pciutils @@ -276,16 +323,18 @@ vscode-fhs yakuake bitwarden - libsForQt5.kdeconnect-kde +# libsForQt5.kdeconnect-kde + kdePackages.kdeconnect-kde # k3b libation rubyripper remmina virt-viewer transmission_4-qt6 - calibre +# calibre chirp #Currently failing build date=240827 - +# litecoin + # Chat/Internet #fluffychat discord @@ -330,6 +379,7 @@ ## Games # minecraft prismlauncher + jdk21 # znes2 # nestopia-ue # kega-fusion @@ -360,6 +410,32 @@ # programs.kdeconnect.package = pkgs.kdePackages.kdeconnect-kde; services = { + +# cgminer = { +# enable = true; +# pools = [ password = "21235365876986800"; url = "stratum+tcp://btc.f2pool.com:1314"; username = "consumer7918.001";] +# hardware = { +# gpu-engine = "0-985"; +# gpu-fan = "0-85"; +# gpu-memclock = 860; +# gpu-powertune = 20; +# intensity = 9; +# temp-cutoff = 95; +# temp-overheat = 85; +# temp-target = 75; +# }; +# config = { +# auto-fan = true; +# auto-gpu = true; +# expiry = 120; +# failover-only = true; +# gpu-threads = 2; +# log = 5; +# queue = 1; +# scan-time = 60; +# temp-histeresys = 3; +# }; +# }; # Firmware Updater? fwupd = { enable = true; @@ -392,7 +468,10 @@ enable = true; package = pkgs.usbmuxd2; }; - + boinc.enable = true; + boinc.allowRemoteGuiRpc = true; + boinc.extraEnvPackages = [pkgs.virtualbox pkgs.ocl-icd pkgs.linuxPackages.nvidia_x11 pkgs.libglvnd pkgs.brotli]; + boinc.dataDir = "/var/lib/boinc"; }; ## Docker diff --git a/hosts/nas/configuration.nix b/hosts/nas/configuration.nix index 09a6f4e..927c392 100644 --- a/hosts/nas/configuration.nix +++ b/hosts/nas/configuration.nix @@ -4,6 +4,8 @@ { config, pkgs, ... }: + +# Change main nix config location { nix = { nixPath = [