diff --git a/home.nix b/home.nix index 50ff625..dc6654c 100644 --- a/home.nix +++ b/home.nix @@ -4,7 +4,7 @@ imports = [ ./modules/syncthing.nix ] ++ (if device == "server" then [ - + ] else [ ./modules/stylix.nix #./modules/firefox.nix diff --git a/main.nix b/main.nix index 5f14a2b..cbac344 100644 --- a/main.nix +++ b/main.nix @@ -31,6 +31,8 @@ #./modules/firefox.nix ]) ++ (if device == "laptop" then [ ./modules/mpd.nix + ] else []) ++ (if device == "desktop" then [ + ./modules/openrgb.nix ] else []); system = { diff --git a/modules/openrgb.nix b/modules/openrgb.nix new file mode 100644 index 0000000..89c90b6 --- /dev/null +++ b/modules/openrgb.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: + +{ + services.hardware.openrgb = { + enable = true; + + motherboard = "intel"; # i9-14900K + }; + + users.users.bug.extraGroups = [ "i2c" ]; + + hardware.i2c.enable = true; + + boot.kernelModules = [ + "i2c-dev" # I2C device access for motherboard RGB + "i2c-i801" # Intel I2C controller (Z790 chipset) + "snd-aloop" # Audio loopback for monitoring + ]; +} \ No newline at end of file diff --git a/modules/searxng.nix b/modules/searxng.nix index d6c4ce3..82e9b53 100644 --- a/modules/searxng.nix +++ b/modules/searxng.nix @@ -6,9 +6,11 @@ redisCreateLocally = true; settings.server = { - bind_address = "::1"; + bind_address = "127.0.0.1"; - port = 8080; + port = 1025; }; + + environmentFile = "/home/bug/nix/modules/searxng_key"; }; } \ No newline at end of file diff --git a/modules/searxng_key b/modules/searxng_key new file mode 100644 index 0000000..c728b1b --- /dev/null +++ b/modules/searxng_key @@ -0,0 +1 @@ +SEARXNG_SECRET=test \ No newline at end of file