From 1ced7c079e142d2b51e6985a610ed78a84efeb9f Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Mon, 8 May 2023 23:08:24 -0600 Subject: [PATCH] scanner/printer drivers and application installs --- configuration.nix | 26 +++++++++++++++++++++---- configuration.org | 40 +++++++++++++++++++++++++++++--------- hardware-configuration.nix | 7 +++++-- 3 files changed, 58 insertions(+), 15 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4b69542..93803a3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -63,8 +63,8 @@ environment.gnome.excludePackages = (with pkgs; [ epiphany gnome-characters yelp - simple-scan gnome-font-viewer + cheese ]); hardware.pulseaudio.enable = false; @@ -122,9 +122,10 @@ unstable.protonup-qt # update proton-ge libreoffice-fresh # office, but based calibre # ugly af eBook library manager foliate # gtk eBook reader -gnome.simple-scan # document scanner gnome-feeds # feed reader, maybe will replace with nextcloud unstable.wike # gtk wikipedia wow! +unstable.furtherance # I made this one tehee track time utility +gnome.simple-scan # scanner # sequeler # friendly SQL client blanket # background noise @@ -256,6 +257,14 @@ symbola speedtest-cli # check internet speed from the comand line editorconfig # follow rules of contributin +]) ++ (with pkgs.bat-extras; [ + batman # man pages + batpipe # piping + batgrep # ripgrep + batdiff # this is getting crazy! + batwatch # probably my next best friend + prettybat # trans your sourcecode! + ]) ++ (with pkgs.fishPlugins; [ sponge # keep history clean from typos fzf-fish # fish command line with fzf keybindings @@ -418,7 +427,6 @@ services = { environment.systemPackages = with pkgs; [ wget - neovim docker-compose # easy way to migrate my docker anywhere! ]; @@ -512,6 +520,10 @@ snapraid = { programs = { mtr.enable = true; + neovim = { + enable = true; + vimAlias = true; + }; gnupg.agent = { enable = true; enableSSHSupport = true; @@ -527,7 +539,13 @@ programs = { }; services = { - printing.enable = true; + printing = { + enable = true; + drivers = [ pkgs.hplip pkgs.hplipWithPlugin ]; + }; + # ipp-usb.enable = true; # usb scanner + avahi.enable = true; + avahi.nssmdns = true; fstrim.enable = true; btrfs.autoScrub = { enable = true; diff --git a/configuration.org b/configuration.org index 389688d..aa0fbb2 100755 --- a/configuration.org +++ b/configuration.org @@ -35,7 +35,6 @@ - [X] fish - [ ] appimages - [-] Compile missing apps [1/8] - - [X] furtherance upgrade - [-] zap init - [-] font-downloader - [ ] SaveDesktop (flathub) @@ -137,12 +136,13 @@ undesirable packages from installing. services = { xserver = { enable = true; - videoDrivers = [ "nvidia" ]; + videoDrivers = [ "nvidia" "modesetting" ]; displayManager.gdm.enable = true; desktopManager.gnome.enable = true; # wacom.enable = true; layout = "us"; libinput.enable = true; # Wacom required? + # useGlamor = true; }; }; @@ -161,8 +161,8 @@ environment.gnome.excludePackages = (with pkgs; [ epiphany gnome-characters yelp - simple-scan gnome-font-viewer + cheese ]); #+end_src @@ -275,7 +275,7 @@ anticipated, most everything seems to run seamlessly. #+begin_src nix lutris # game/emulator manager -# grapejuice # roblox manager +unstable.grapejuice # roblox manager minecraft # minecraft official launcher parsec-bin # remote gaming with friends unstable.protonup-qt # update proton-ge @@ -288,9 +288,10 @@ this are not used as often as I wish… libreoffice-fresh # office, but based calibre # ugly af eBook library manager foliate # gtk eBook reader -gnome.simple-scan # document scanner gnome-feeds # feed reader, maybe will replace with nextcloud unstable.wike # gtk wikipedia wow! +unstable.furtherance # I made this one tehee track time utility +gnome.simple-scan # scanner #+end_src *** MISC @@ -464,6 +465,18 @@ symbola editorconfig # follow rules of contributin #+end_src +** BAT-EXTRAS + +#+begin_src nix +]) ++ (with pkgs.bat-extras; [ + batman # man pages + batpipe # piping + batgrep # ripgrep + batdiff # this is getting crazy! + batwatch # probably my next best friend + prettybat # trans your sourcecode! +#+end_src + ** FISH PLUGINS #+begin_src nix @@ -699,7 +712,6 @@ may be challenging. #+begin_src nix environment.systemPackages = with pkgs; [ wget - neovim docker-compose # easy way to migrate my docker anywhere! ]; #+end_src @@ -818,6 +830,10 @@ of some services. #+begin_src nix programs = { mtr.enable = true; + neovim = { + enable = true; + vimAlias = true; + }; gnupg.agent = { enable = true; enableSSHSupport = true; @@ -833,7 +849,13 @@ programs = { }; services = { - printing.enable = true; + printing = { + enable = true; + drivers = [ pkgs.hplip pkgs.hplipWithPlugin ]; + }; + # ipp-usb.enable = true; # usb scanner + avahi.enable = true; + avahi.nssmdns = true; fstrim.enable = true; btrfs.autoScrub = { enable = true; @@ -868,7 +890,7 @@ systemd.services = { description = "Start docker-compose servers"; after = [ "docker.service" "docker.socket" ]; requires = [ "docker.service" "docker.socket" ]; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "default.target" ]; environment = { FILE = "/home/jawz/Development/Docker/docker-compose.yml"; }; @@ -889,7 +911,7 @@ systemd.user.services = { enable = true; restartIfChanged = true; description = "Run hentai@home server"; - wantedBy = [ "multi-user.target" ]; + wantedBy = [ "default.target" ]; path = [ pkgs.HentaiAtHome ]; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 6632fd7..3bc297d 100755 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -41,7 +41,7 @@ }; }; kernelModules = [ "kvm-intel" ]; - kernel.sysctl = { "vm.swappiness" = 100; }; + kernel.sysctl = { "vm.swappiness" = 80; }; extraModulePackages = [ ]; initrd = { availableKernelModules = @@ -131,7 +131,10 @@ powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; hardware = { - sane.enable = true; + sane = { + enable = true; + extraBackends = [ pkgs.hplip pkgs.hplipWithPlugin ]; + }; cpu.intel.updateMicrocode = lib.mkDefault true; bluetooth.enable = true; # huion driver