add de3
This commit is contained in:
parent
cf401b300c
commit
83aa4d9424
15 changed files with 620 additions and 198 deletions
39
modules/de3.nix
Normal file
39
modules/de3.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
let cfg = config.de3;
|
||||
in {
|
||||
options.de3.enable = mkEnableOption "Enable de3 system stuff";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
i18n.inputMethod = {
|
||||
enabled = "ibus";
|
||||
ibus.engines = with pkgs.ibus-engines; [ typing-booster uniemoji ];
|
||||
};
|
||||
|
||||
xdg.portal.enable = lib.mkDefault true;
|
||||
xdg.portal.extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-kde
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
enable = lib.mkDefault true;
|
||||
displayManager.sddm.enable = lib.mkDefault true;
|
||||
desktopManager.plasma5.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
services.power-profiles-daemon.enable = lib.mkDefault false;
|
||||
|
||||
# for KDE connect
|
||||
networking.firewall.allowedTCPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
networking.firewall.allowedUDPPortRanges = [{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}];
|
||||
};
|
||||
}
|
|
@ -9,5 +9,6 @@
|
|||
./workstation.nix
|
||||
./ezpw.nix
|
||||
./de2.nix
|
||||
./de3.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -199,7 +199,6 @@ in {
|
|||
'';
|
||||
|
||||
xdg.portal.enable = lib.mkDefault true;
|
||||
xdg.portal.gtkUsePortal = lib.mkDefault true;
|
||||
xdg.portal.extraPortals = lib.mkDefault (with pkgs; [
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-wlr
|
||||
|
|
|
@ -16,85 +16,91 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
# Enable CUPS and SANE for printing and scanning
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = with pkgs; [
|
||||
gutenprint
|
||||
gutenprintBin
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = with pkgs; [
|
||||
gutenprint
|
||||
gutenprintBin
|
||||
|
||||
hplip
|
||||
hplip
|
||||
|
||||
samsung-unified-linux-driver
|
||||
splix
|
||||
brlaser
|
||||
samsung-unified-linux-driver
|
||||
splix
|
||||
brlaser
|
||||
|
||||
brgenml1lpr
|
||||
brgenml1cupswrapper
|
||||
brgenml1lpr
|
||||
brgenml1cupswrapper
|
||||
|
||||
carps-cups
|
||||
carps-cups
|
||||
|
||||
epson-201106w
|
||||
epson-alc1100
|
||||
epson-escpr
|
||||
epson-escpr2
|
||||
epson-workforce-635-nx625-series
|
||||
epson_201207w
|
||||
epson-201106w
|
||||
epson-alc1100
|
||||
epson-escpr
|
||||
epson-escpr2
|
||||
epson-workforce-635-nx625-series
|
||||
epson_201207w
|
||||
|
||||
fxlinuxprint
|
||||
fxlinuxprint
|
||||
|
||||
canon-cups-ufr2
|
||||
canon-cups-ufr2
|
||||
|
||||
cups-bjnp
|
||||
cups-bjnp
|
||||
|
||||
cups-brother-hl1110
|
||||
cups-brother-hl1210w
|
||||
cups-brother-hl3140cw
|
||||
cups-brother-hll2340dw
|
||||
cups-brother-hl1110
|
||||
cups-brother-hl1210w
|
||||
cups-brother-hl3140cw
|
||||
cups-brother-hll2340dw
|
||||
|
||||
cups-drv-rastertosag-gdi
|
||||
cups-drv-rastertosag-gdi
|
||||
|
||||
cups-dymo
|
||||
cups-dymo
|
||||
|
||||
cups-kyocera
|
||||
cups-kyocera-ecosys-m552x-p502x
|
||||
# cups-kyodialog3 # Mirror is down
|
||||
# cups-kyocera # mirror is down
|
||||
cups-kyocera-ecosys-m552x-p502x
|
||||
# cups-kyodialog3 # Mirror is down
|
||||
|
||||
cups-toshiba-estudio
|
||||
cups-toshiba-estudio
|
||||
|
||||
cups-zj-58
|
||||
cups-zj-58
|
||||
|
||||
mfc9140cdncupswrapper
|
||||
mfc9140cdnlpr
|
||||
mfc9140cdncupswrapper
|
||||
mfc9140cdnlpr
|
||||
|
||||
mfcj470dw-cupswrapper
|
||||
mfcj470dwlpr
|
||||
mfcj470dw-cupswrapper
|
||||
mfcj470dwlpr
|
||||
|
||||
mfcj6510dw-cupswrapper
|
||||
mfcj6510dwlpr
|
||||
mfcj6510dw-cupswrapper
|
||||
mfcj6510dwlpr
|
||||
|
||||
mfcl2700dncupswrapper
|
||||
mfcl2700dnlpr
|
||||
mfcl2720dwcupswrapper
|
||||
mfcl2720dwlpr
|
||||
mfcl2740dwcupswrapper
|
||||
mfcl2740dwlpr
|
||||
mfcl2700dncupswrapper
|
||||
mfcl2700dnlpr
|
||||
mfcl2720dwcupswrapper
|
||||
mfcl2720dwlpr
|
||||
mfcl2740dwcupswrapper
|
||||
mfcl2740dwlpr
|
||||
|
||||
mfcl3770cdwcupswrapper
|
||||
mfcl3770cdwlpr
|
||||
mfcl3770cdwcupswrapper
|
||||
mfcl3770cdwlpr
|
||||
|
||||
# Maybe this isn't a good idea?
|
||||
(mfcl8690cdwcupswrapper.override {
|
||||
mfcl8690cdwlpr = fixPlatforms mfcl8690cdwlpr;
|
||||
})
|
||||
(fixPlatforms mfcl8690cdwlpr)
|
||||
];
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.brscan4.enable = true;
|
||||
hardware.sane.extraBackends = with pkgs; [
|
||||
utsushi
|
||||
epkowa
|
||||
hplipWithPlugin
|
||||
brscan4
|
||||
dsseries
|
||||
];
|
||||
# Maybe this isn't a good idea?
|
||||
(mfcl8690cdwcupswrapper.override {
|
||||
mfcl8690cdwlpr = fixPlatforms mfcl8690cdwlpr;
|
||||
})
|
||||
(fixPlatforms mfcl8690cdwlpr)
|
||||
];
|
||||
};
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
brscan4.enable = true;
|
||||
brscan5.enable = true;
|
||||
dsseries.enable = true;
|
||||
drivers.scanSnap.enable = true;
|
||||
extraBackends = with pkgs; [
|
||||
utsushi
|
||||
epkowa
|
||||
hplipWithPlugin
|
||||
];
|
||||
};
|
||||
services.udev.packages = [ pkgs.utsushi ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -171,6 +171,8 @@ in {
|
|||
"podman"
|
||||
"input"
|
||||
"uinput"
|
||||
"scanner"
|
||||
"lp"
|
||||
];
|
||||
|
||||
subUidRanges = [{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue