From ab6d9dc8483e0e2bcd1cd38ba452443f178d9e81 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 20 Jul 2022 15:29:20 +0200 Subject: [PATCH 1/2] PC-fixe: enable HP printing --- systems/PC-Fixe/configuration.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systems/PC-Fixe/configuration.nix b/systems/PC-Fixe/configuration.nix index 61304dd..4710a83 100644 --- a/systems/PC-Fixe/configuration.nix +++ b/systems/PC-Fixe/configuration.nix @@ -212,6 +212,9 @@ Option "metamodes" "DP-4: 3440x1440_144 +0+0 {AllowGSYNCCompatible=On}" ''; + services.printing.enable = true; + services.printing.drivers = [ pkgs.hplip ]; + systemd = let DP4Config = "--output DP-4 --mode 3440x1440 --rate 144"; HDMIConfig = "--output HDMI-0 --auto --left-of DP-4"; From 756e619a1d9b31f8ac093fd135ba608251a1c043 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Wed, 20 Jul 2022 15:34:53 +0200 Subject: [PATCH 2/2] add channel patch example --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index 38aa468..c7c1cf6 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,16 @@ supportedSystems = [ "x86_64-linux" ]; + # Patch example + + # channels.nixpkgs-unstable.patches = [ + # (nixpkgs-unstable.legacyPackages."x86_64-linux".fetchpatch { + # name = "electron-cash.patch"; + # url = "https://github.com/NixOS/nixpkgs/pull/160607.patch"; + # sha256 = "sha256-oQbiyhVWYIkEuZEKqaPuIL00PNPnuTAw64wuqZ8YeDs="; + # }) + # ]; + hostDefaults.modules = [ nixpkgs.nixosModules.notDetected {