push
This commit is contained in:
2
home.nix
2
home.nix
@@ -4,7 +4,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./modules/syncthing.nix
|
./modules/syncthing.nix
|
||||||
] ++ (if device == "server" then [
|
] ++ (if device == "server" then [
|
||||||
|
|
||||||
] else [
|
] else [
|
||||||
./modules/stylix.nix
|
./modules/stylix.nix
|
||||||
#./modules/firefox.nix
|
#./modules/firefox.nix
|
||||||
|
|||||||
2
main.nix
2
main.nix
@@ -31,6 +31,8 @@
|
|||||||
#./modules/firefox.nix
|
#./modules/firefox.nix
|
||||||
]) ++ (if device == "laptop" then [
|
]) ++ (if device == "laptop" then [
|
||||||
./modules/mpd.nix
|
./modules/mpd.nix
|
||||||
|
] else []) ++ (if device == "desktop" then [
|
||||||
|
./modules/openrgb.nix
|
||||||
] else []);
|
] else []);
|
||||||
|
|
||||||
system = {
|
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;
|
redisCreateLocally = true;
|
||||||
|
|
||||||
settings.server = {
|
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