diff options
| author | Fuwn <[email protected]> | 2024-09-04 19:57:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-04 19:57:20 -0700 |
| commit | 8b5e5079e5fd00eadf2e3926c104e4ecf99a5779 (patch) | |
| tree | d35acd86220ae3ffa521677d55acb37e9436ba64 /modules/system/services | |
| parent | styles (diff) | |
| download | nixos-config-8b5e5079e5fd00eadf2e3926c104e4ecf99a5779.tar.xz nixos-config-8b5e5079e5fd00eadf2e3926c104e4ecf99a5779.zip | |
refac
Diffstat (limited to 'modules/system/services')
| -rw-r--r-- | modules/system/services/ananicy.nix | 8 | ||||
| -rw-r--r-- | modules/system/services/dbus.nix | 11 | ||||
| -rw-r--r-- | modules/system/services/default.nix | 20 | ||||
| -rw-r--r-- | modules/system/services/libinput.nix | 13 | ||||
| -rw-r--r-- | modules/system/services/ollama.nix | 6 | ||||
| -rw-r--r-- | modules/system/services/xserver.nix | 6 |
6 files changed, 64 insertions, 0 deletions
diff --git a/modules/system/services/ananicy.nix b/modules/system/services/ananicy.nix new file mode 100644 index 0000000..bdc9bbd --- /dev/null +++ b/modules/system/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/system/services/dbus.nix b/modules/system/services/dbus.nix new file mode 100644 index 0000000..d67ed2b --- /dev/null +++ b/modules/system/services/dbus.nix @@ -0,0 +1,11 @@ +{ + services.dbus = { + enable = true; + implementation = "broker"; + + # packages = [ + # # pkgs.flatpak + # pkgs.xdg-desktop-portal + # ]; + }; +} diff --git a/modules/system/services/default.nix b/modules/system/services/default.nix new file mode 100644 index 0000000..44436bd --- /dev/null +++ b/modules/system/services/default.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: +{ + imports = [ + ./ananicy.nix + ./dbus.nix + ./libinput.nix + ./ollama.nix + ./xserver.nix + ]; + + services = { + printing.enable = false; + gnome.gnome-keyring.enable = true; + fstrim.enable = true; + gvfs.enable = true; + udev.packages = with pkgs; [ pkgs.logitech-udev-rules ]; + thermald.enable = true; + irqbalance.enable = true; + }; +} diff --git a/modules/system/services/libinput.nix b/modules/system/services/libinput.nix new file mode 100644 index 0000000..643f814 --- /dev/null +++ b/modules/system/services/libinput.nix @@ -0,0 +1,13 @@ +{ + services.libinput = { + enable = true; + + mouse = { + accelProfile = "flat"; + }; + + touchpad = { + accelProfile = "flat"; + }; + }; +} diff --git a/modules/system/services/ollama.nix b/modules/system/services/ollama.nix new file mode 100644 index 0000000..2638d12 --- /dev/null +++ b/modules/system/services/ollama.nix @@ -0,0 +1,6 @@ +{ + services.ollama = { + enable = false; + acceleration = "cuda"; + }; +} diff --git a/modules/system/services/xserver.nix b/modules/system/services/xserver.nix new file mode 100644 index 0000000..e08ac04 --- /dev/null +++ b/modules/system/services/xserver.nix @@ -0,0 +1,6 @@ +{ + services.xserver = { + xkb.layout = "us"; + videoDrivers = [ "nvidia" ]; + }; +} |