From c73535601131527f1aba3fa79b83a8aadd48f2a6 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 22 Dec 2024 23:54:16 +0100 Subject: [PATCH] Move printing module --- hosts/lift/configuration.nix | 2 +- nixos/desktop/printing/default.nix => modules/printing.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename nixos/desktop/printing/default.nix => modules/printing.nix (77%) diff --git a/hosts/lift/configuration.nix b/hosts/lift/configuration.nix index 2e84f67..6f5abf4 100644 --- a/hosts/lift/configuration.nix +++ b/hosts/lift/configuration.nix @@ -2,7 +2,7 @@ { imports = [ - ../../nixos/desktop/printing + ../../modules/printing.nix ]; # Bootloader. diff --git a/nixos/desktop/printing/default.nix b/modules/printing.nix similarity index 77% rename from nixos/desktop/printing/default.nix rename to modules/printing.nix index cfafb2c..66f8664 100644 --- a/nixos/desktop/printing/default.nix +++ b/modules/printing.nix @@ -1,4 +1,4 @@ -{ inputs, lib, config, pkgs, ... }: { +{ pkgs, ... }: { # Enable CUPS to print documents. services.printing.enable = true; @@ -10,7 +10,7 @@ }; services.printing.drivers = [ - (pkgs.writeTextDir "share/cups/model/kyocera_fs-1300d.ppd" (builtins.readFile ../../../files/kyocera_fs-1300d.ppd)) + (pkgs.writeTextDir "share/cups/model/kyocera_fs-1300d.ppd" (builtins.readFile ../files/kyocera_fs-1300d.ppd)) ]; hardware.printers = { ensurePrinters = [