programs: ship cups
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
sane.nixcache.substituters.desko = false;
|
sane.nixcache.substituters.desko = false;
|
||||||
sane.nixcache.remote-builders.desko = false;
|
sane.nixcache.remote-builders.desko = false;
|
||||||
|
|
||||||
|
sane.programs.cups.enableFor.user.colin = true;
|
||||||
sane.programs.sway.enableFor.user.colin = true;
|
sane.programs.sway.enableFor.user.colin = true;
|
||||||
sane.programs.iphoneUtils.enableFor.user.colin = true;
|
sane.programs.iphoneUtils.enableFor.user.colin = true;
|
||||||
sane.programs.steam.enableFor.user.colin = true;
|
sane.programs.steam.enableFor.user.colin = true;
|
||||||
|
@@ -14,10 +14,12 @@
|
|||||||
boot.loader.efi.canTouchEfiVariables = false;
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
|
sane.image.extraBootFiles = [ pkgs.bootpart-uefi-x86_64 ];
|
||||||
|
|
||||||
|
sane.programs.cups.enableFor.user.colin = true;
|
||||||
|
sane.programs.stepmania.enableFor.user.colin = true;
|
||||||
sane.programs.sway.enableFor.user.colin = true;
|
sane.programs.sway.enableFor.user.colin = true;
|
||||||
|
|
||||||
sane.programs."gnome.geary".config.autostart = true;
|
sane.programs."gnome.geary".config.autostart = true;
|
||||||
sane.programs.signal-desktop.config.autostart = true;
|
sane.programs.signal-desktop.config.autostart = true;
|
||||||
sane.programs.stepmania.enableFor.user.colin = true;
|
|
||||||
|
|
||||||
sops.secrets.colin-passwd.neededForUsers = true;
|
sops.secrets.colin-passwd.neededForUsers = true;
|
||||||
|
|
||||||
|
34
hosts/common/programs/cups.nix
Normal file
34
hosts/common/programs/cups.nix
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# docs: <https://wiki.nixos.org/wiki/Printing>
|
||||||
|
# to add a printer:
|
||||||
|
# 1. <http://localhost:631/admin/>
|
||||||
|
# 2. click "find new printers" and follow prompts
|
||||||
|
# - prefer to use the "Generic IPP Everywhere Printer" driver
|
||||||
|
# alternatively, add/modify printers by running
|
||||||
|
# - `system-config-printer`
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.sane.programs.cups;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
sane.programs.cups = {
|
||||||
|
suggestedPrograms = [
|
||||||
|
"system-config-printer"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
sane.programs.system-config-printer = {};
|
||||||
|
|
||||||
|
services.printing = lib.mkIf cfg.enabled {
|
||||||
|
enable = true;
|
||||||
|
startWhenNeeded = false; #< a.k.a. socket activated?
|
||||||
|
# webInterface = false;
|
||||||
|
# logLevel = "debug"; # default: "info"
|
||||||
|
# extraConfig = "<lines ... >";
|
||||||
|
# drivers = [ <cups driver packages...> ]
|
||||||
|
};
|
||||||
|
# services.avahi = lib.mkIf cfg.enabled {
|
||||||
|
# # only needed for wireless printing
|
||||||
|
# enable = true;
|
||||||
|
# nssmdns4 = true;
|
||||||
|
# openFirewall = true;
|
||||||
|
# };
|
||||||
|
}
|
@@ -21,6 +21,7 @@
|
|||||||
./chatty.nix
|
./chatty.nix
|
||||||
./conky
|
./conky
|
||||||
./cozy.nix
|
./cozy.nix
|
||||||
|
./cups.nix
|
||||||
./curlftpfs.nix
|
./curlftpfs.nix
|
||||||
./dconf.nix
|
./dconf.nix
|
||||||
./deadd-notification-center
|
./deadd-notification-center
|
||||||
|
Reference in New Issue
Block a user