Don't double configure printing
This commit is contained in:
parent
889bbb57d5
commit
0da3e4a95f
2 changed files with 12 additions and 19 deletions
|
@ -1,19 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf config.system.desktop.enable {
|
||||
services = {
|
||||
printing = {
|
||||
enable = true;
|
||||
enable = config.system.desktop.enable;
|
||||
drivers = with pkgs; [ hplip ];
|
||||
webInterface = false;
|
||||
};
|
||||
avahi = {
|
||||
enable = true;
|
||||
enable = config.services.printing.enable;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ system-config-printer ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.system.nvidia.enable = lib.mkEnableOption "Enable the Nvidia graphics stack";
|
||||
|
||||
|
@ -10,10 +10,8 @@
|
|||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
||||
|
||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ];
|
||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # Experimental framebuffer allows tty access
|
||||
|
||||
specialisation.nouveau.configuration.config.system.nvidia.enable = lib.mkForce false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue