Fix sv bash alias and improve printer functionality

This commit is contained in:
Tyler Kelley 2024-02-10 17:40:55 -06:00
parent 90f5c7b379
commit 6049d117d5
3 changed files with 6 additions and 4 deletions

View File

@ -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";

View File

@ -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"];
}

View File

@ -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