[General+Boot] Add more options options to minimal config.

Use mainline kvdo.
Add more options to nouveau kernel module.
This commit is contained in:
Antoine Viallon 2022-10-05 09:02:25 +02:00
parent 233927842b
commit 1c83eb0708
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
5 changed files with 40 additions and 23 deletions

View file

@ -71,7 +71,8 @@ in {
defaultShared = mkDefault true;
browsing = mkDefault true;
listenAddresses = [ "0.0.0.0:631" ];
drivers = with pkgs; [
drivers = with pkgs; []
++ (optionals (!desktopCfg.minimal) [
hplipWithPlugin
gutenprint
splix
@ -92,13 +93,13 @@ in {
cups-drv-rastertosag-gdi
# cups-kyocera-ecosys-m552x-p502x
canon-cups-ufr2
];
]);
webInterface = mkDefault true;
};
services.system-config-printer.enable = mkIf desktopCfg.enable true;
services.system-config-printer.enable = mkIf (desktopCfg.enable && !desktopCfg.minimal) true;
hardware.sane = mkIf desktopCfg.enable {
enable = true;
enable = !desktopCfg.minimal;
netConf = "192.168.0.0/24";
extraBackends = with pkgs; [
hplipWithPlugin
@ -190,10 +191,10 @@ in {
programs.ssh.startAgent = false;
# SmartCards
services.pcscd.enable = true;
services.pcscd.enable = mkDefault (!desktopCfg.minimal);
services.avahi = {
enable = true; # .lan/.local resolution
enable = !desktopCfg.minimal; # .lan/.local resolution
nssmdns = true; # .lan/.local resolution
openFirewall = true;
reflector = true;