mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
[General+Boot] Add more options options to minimal config.
Use mainline kvdo. Add more options to nouveau kernel module.
This commit is contained in:
parent
233927842b
commit
1c83eb0708
5 changed files with 40 additions and 23 deletions
13
services.nix
13
services.nix
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue