From 6049d117d5cf09d18a024c4045c59f7f8558049b Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Sat, 10 Feb 2024 17:40:55 -0600 Subject: [PATCH] Fix sv bash alias and improve printer functionality --- config/home/bash.nix | 2 +- config/system/printer.nix | 2 +- options.nix | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/home/bash.nix b/config/home/bash.nix index 6aae52f..594fd63 100644 --- a/config/home/bash.nix +++ b/config/home/bash.nix @@ -21,7 +21,7 @@ lib.mkIf (theShell == "bash") { }; shellAliases = { - sv="sudo vim"; + sv="sudo nvim"; flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}"; flake-update="sudo nix flake update ${flakeDir}"; gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot"; diff --git a/config/system/printer.nix b/config/system/printer.nix index 08324ce..3d6ac04 100644 --- a/config/system/printer.nix +++ b/config/system/printer.nix @@ -16,6 +16,6 @@ lib.mkIf (printer == true) { extraBackends = [pkgs.sane-airscan]; disabledDefaultBackends = ["escl"]; }; - environment.systemPackages = with pkgs; [ system-config-printer ]; + programs.system-config-printer.enable = true; users.users.${username}.extraGroups = ["scanner" "lp"]; } diff --git a/options.nix b/options.nix index 3ab5262..0c55531 100644 --- a/options.nix +++ b/options.nix @@ -43,9 +43,11 @@ in { nfsMountPoint = "/mnt/nas"; nfsDevice = "nas:/volume1/nas"; - # Printer, NTP, HWClock Settings - localHWClock = false; + # NTP & HWClock Settings ntp = true; + localHWClock = false; + + # Enable Printer & Scanner Support printer = false; # Enable Flatpak & Larger Programs