push
This commit is contained in:
2
main.nix
2
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 = {
|
||||
|
||||
19
modules/openrgb.nix
Normal file
19
modules/openrgb.nix
Normal file
@@ -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
|
||||
];
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
1
modules/searxng_key
Normal file
1
modules/searxng_key
Normal file
@@ -0,0 +1 @@
|
||||
SEARXNG_SECRET=test
|
||||
Reference in New Issue
Block a user