diff options
| author | Fuwn <[email protected]> | 2024-09-11 00:52:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-11 00:52:32 -0700 |
| commit | b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c (patch) | |
| tree | 5e61c8151b6cde865405d61fb9c1f7bd65c9f662 /modules/software/services | |
| parent | Bump: swift (diff) | |
| download | nixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.tar.xz nixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.zip | |
Bump: i2p
Diffstat (limited to 'modules/software/services')
| -rw-r--r-- | modules/software/services/adb.nix | 12 | ||||
| -rw-r--r-- | modules/software/services/ananicy.nix | 8 | ||||
| -rw-r--r-- | modules/software/services/dbus.nix | 15 | ||||
| -rw-r--r-- | modules/software/services/default.nix | 22 | ||||
| -rw-r--r-- | modules/software/services/libinput.nix | 13 | ||||
| -rw-r--r-- | modules/software/services/ollama.nix | 6 | ||||
| -rw-r--r-- | modules/software/services/printing.nix | 19 | ||||
| -rw-r--r-- | modules/software/services/xserver.nix | 6 |
8 files changed, 101 insertions, 0 deletions
diff --git a/modules/software/services/adb.nix b/modules/software/services/adb.nix new file mode 100644 index 0000000..d106ead --- /dev/null +++ b/modules/software/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/software/services/ananicy.nix b/modules/software/services/ananicy.nix new file mode 100644 index 0000000..bdc9bbd --- /dev/null +++ b/modules/software/services/ananicy.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +{ + services.ananicy = { + enable = false; + package = pkgs.ananicy-cpp; + rulesProvider = pkgs.ananicy-rules-cachyos; + }; +} diff --git a/modules/software/services/dbus.nix b/modules/software/services/dbus.nix new file mode 100644 index 0000000..8b25bf9 --- /dev/null +++ b/modules/software/services/dbus.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: +{ + services.dbus = { + enable = true; + implementation = "broker"; + + packages = with pkgs; [ + dconf + gcr + udisks2 + # flatpak + # xdg-desktop-portal + ]; + }; +} diff --git a/modules/software/services/default.nix b/modules/software/services/default.nix new file mode 100644 index 0000000..f126f62 --- /dev/null +++ b/modules/software/services/default.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: +{ + imports = [ + # ./adb.nix + ./ananicy.nix + ./dbus.nix + ./libinput.nix + ./ollama.nix + # ./printing.nix + ./xserver.nix + ]; + + services = { + printing.enable = false; + gnome.gnome-keyring.enable = true; + fstrim.enable = false; + gvfs.enable = true; + udev.packages = with pkgs; [ pkgs.logitech-udev-rules ]; + thermald.enable = true; + irqbalance.enable = true; + }; +} diff --git a/modules/software/services/libinput.nix b/modules/software/services/libinput.nix new file mode 100644 index 0000000..643f814 --- /dev/null +++ b/modules/software/services/libinput.nix @@ -0,0 +1,13 @@ +{ + services.libinput = { + enable = true; + + mouse = { + accelProfile = "flat"; + }; + + touchpad = { + accelProfile = "flat"; + }; + }; +} diff --git a/modules/software/services/ollama.nix b/modules/software/services/ollama.nix new file mode 100644 index 0000000..d737250 --- /dev/null +++ b/modules/software/services/ollama.nix @@ -0,0 +1,6 @@ +{ + services.ollama = { + enable = true; + acceleration = "cuda"; + }; +} diff --git a/modules/software/services/printing.nix b/modules/software/services/printing.nix new file mode 100644 index 0000000..f7a38de --- /dev/null +++ b/modules/software/services/printing.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +{ + services = { + printing = { + enable = true; + + drivers = with pkgs; [ + gutenprint + hplip + ]; + }; + + avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; +} diff --git a/modules/software/services/xserver.nix b/modules/software/services/xserver.nix new file mode 100644 index 0000000..e08ac04 --- /dev/null +++ b/modules/software/services/xserver.nix @@ -0,0 +1,6 @@ +{ + services.xserver = { + xkb.layout = "us"; + videoDrivers = [ "nvidia" ]; + }; +} |