diff options
Diffstat (limited to 'modules/system/services')
| -rw-r--r-- | modules/system/services/adb.nix | 12 | ||||
| -rw-r--r-- | modules/system/services/dbus.nix | 12 | ||||
| -rw-r--r-- | modules/system/services/default.nix | 2 | ||||
| -rw-r--r-- | modules/system/services/printing.nix | 19 |
4 files changed, 41 insertions, 4 deletions
diff --git a/modules/system/services/adb.nix b/modules/system/services/adb.nix new file mode 100644 index 0000000..d106ead --- /dev/null +++ b/modules/system/services/adb.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + programs.adb.enable = true; + + services.udev = { + packages = [ pkgs.android-udev-rules ]; + + extraRules = '' + SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="adbusers" + ''; + }; +} diff --git a/modules/system/services/dbus.nix b/modules/system/services/dbus.nix index d67ed2b..8b25bf9 100644 --- a/modules/system/services/dbus.nix +++ b/modules/system/services/dbus.nix @@ -1,11 +1,15 @@ +{ pkgs, ... }: { services.dbus = { enable = true; implementation = "broker"; - # packages = [ - # # pkgs.flatpak - # pkgs.xdg-desktop-portal - # ]; + packages = with pkgs; [ + dconf + gcr + udisks2 + # flatpak + # xdg-desktop-portal + ]; }; } diff --git a/modules/system/services/default.nix b/modules/system/services/default.nix index 44436bd..a8292b2 100644 --- a/modules/system/services/default.nix +++ b/modules/system/services/default.nix @@ -1,10 +1,12 @@ { pkgs, ... }: { imports = [ + # ./adb.nix ./ananicy.nix ./dbus.nix ./libinput.nix ./ollama.nix + # ./printing.nix ./xserver.nix ]; diff --git a/modules/system/services/printing.nix b/modules/system/services/printing.nix new file mode 100644 index 0000000..f7a38de --- /dev/null +++ b/modules/system/services/printing.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +{ + services = { + printing = { + enable = true; + + drivers = with pkgs; [ + gutenprint + hplip + ]; + }; + + avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; +} |