From 30fb6ac0bf90cc28beed6f3049c1f5a9831b46f3 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Wed, 30 Aug 2023 12:24:52 -0600 Subject: [PATCH] tidying up --- configuration.org | 43 ++++++------------------------------------- 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/configuration.org b/configuration.org index 3543c5c..11e4a49 100755 --- a/configuration.org +++ b/configuration.org @@ -39,7 +39,6 @@ other functions. { config, pkgs, ... }: let VERSION = "23.05"; - # "https://github.com/nix-community/home-manager/archive/master.tar.gz"; unstable_tarball = builtins.fetchTarball https://github.com/nixos/nixpkgs/tarball/master; unstable = import unstable_tarball { @@ -77,7 +76,6 @@ cluttered, for example, I may create a module for systemd units. imports = [ ./hardware-configuration.nix ./nginx.nix - /etc/nixos/cachix.nix "${nix-gaming}/modules/pipewireLowLatency.nix" @@ -94,9 +92,10 @@ Pick *ONLY ONE* of the below networking options. - *NetworkManager* it's the default of GNOME, and easiest to use and integrate. #+begin_src nix -networking.hostName = "workstation"; -# networking.wireless.enable = true; -networking.networkmanager.enable = true; +networking = { + hostName = "workstation"; + networkmanager.enable = true; +}; #+end_src ** TIMEZONE & LOCALE @@ -208,24 +207,6 @@ security.sudo = { }; #+end_src -** OPENDOAS -It's mayor advantage over Sudo, is that is being a smaller package, being lessen -known means that there is less security risks associated with it, overall a less -bloated more secure package. Which comes with the caveat that due to it's age, -there is little support for it. Constantly having to resort to hack solutions -such as patches or symlinks. - -#+begin_src nix -# security.sudo.enable = false; -# security.doas.enable = true; -# security.doas.extraRules = [{ -# users = [ "jawz" ]; -# keepEnv = true; -# #persist = true; -# noPass = true; -# }]; -#+end_src - * USER PACKAGES Being part of the "wheel" group, means that the user has root privileges. @@ -267,13 +248,7 @@ users.users.nextcloud = { packages = (with pkgs; [ nodejs_14 perl - exiftool - ### Currently incompatible with newer versions, and compiling - ### an older version takes 7 hours. - # cudatoolkit - # python3Packages.tensorflowWithCuda - # cudaPackages.cudatoolkit - # cudaPackages.cudnn + unstable.exiftool ]); }; users.users.jawz = { @@ -322,7 +297,7 @@ vulkan-tools winetricks # nix-gaming.packages.${pkgs.hostPlatform.system}.wine-discord-ipc-bridge # grapejuice # roblox manager -# minecraft # minecraft official launcher +minecraft # minecraft official launcher parsec-bin # remote gaming with friends protonup-qt # update proton-ge renpy @@ -674,8 +649,6 @@ nixos-reload () { local hardware_file="$HOME/Development/NixOS/hardware-configuration.nix" nixfmt "$nix_file" && nixfmt "$hardware_file" sudo nixos-rebuild switch -I nixos-config="$nix_file" - # sudo systemctl restart docker - # sudo systemctl restart docker-compose } #+end_src #+begin_src nix @@ -766,8 +739,6 @@ environment.systemPackages = with pkgs; [ docker-compose # easy way to migrate my docker anywhere! jellyfin-ffmpeg # coolest video converter! dlib - # nv-codec-headers-11 - # cudatoolkit ]; #+end_src @@ -1159,8 +1130,6 @@ Open ports in the firewall. #+begin_src nix networking = { - # useDHCP = false; - # interfaces.enp0s31f6.useDHCP = true; firewall = let open_firewall_ports = [ 80 # http