Split some modules up.
This commit is contained in:
parent
3136df9d3c
commit
b89851e6d6
4 changed files with 68 additions and 59 deletions
|
|
@ -2,26 +2,28 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./virt.nix
|
./virt.nix
|
||||||
|
./wluma.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.printing = {
|
services.printing = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
# };
|
};
|
||||||
# hardware.printers = {
|
hardware.printers = {
|
||||||
# ensureDefaultPrinter = "Broeder";
|
ensureDefaultPrinter = "Broeder";
|
||||||
# ensurePrinters = [
|
ensurePrinters = [
|
||||||
# {
|
{
|
||||||
# deviceUri = "ipp://192.168.1.33/ipp";
|
deviceUri = "ipp://192.168.1.33/ipp";
|
||||||
# location = "home";
|
location = "home";
|
||||||
# name = "Broeder";
|
name = "Broeder";
|
||||||
# model = "everywhere";
|
model = "everywhere";
|
||||||
# }
|
}
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
programs.evolution.enable = true; # FIXME: move to appropiate place.
|
# programs.evolution.enable = true; # FIXME: move to appropiate place.
|
||||||
niksos = {
|
niksos = {
|
||||||
|
joycond = false; #NOTE: enable when game night lol
|
||||||
fingerprint = true;
|
fingerprint = true;
|
||||||
bluetooth = true;
|
bluetooth = true;
|
||||||
portable = {
|
portable = {
|
||||||
|
|
@ -44,49 +46,12 @@
|
||||||
kde = true;
|
kde = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home-manager.users.jsw = {
|
home-manager.users.jsw.wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
|
||||||
wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
|
|
||||||
services.wluma = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
als.iio = {
|
|
||||||
path = "/sys/bus/iio/devices";
|
|
||||||
thresholds = {
|
|
||||||
"0" = "night";
|
|
||||||
"10" = "dark";
|
|
||||||
"100" = "normal";
|
|
||||||
"20" = "dim";
|
|
||||||
"200" = "bright";
|
|
||||||
"500" = "outdoors";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
output.backlight = [
|
|
||||||
{
|
|
||||||
capturer = "none";
|
|
||||||
name = "eDP-1";
|
|
||||||
path = "/sys/class/backlight/amdgpu_bl1";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
capturer = "none";
|
|
||||||
name = "keyboard";
|
|
||||||
path = "/sys/bus/platform/devices/cros-keyboard-leds.5.auto/leds/chromeos::kbd_backlight";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
hardware.sensor.iio.enable = true; # brightness sensor
|
|
||||||
|
|
||||||
services = {
|
services.udev.extraRules = ''
|
||||||
usbmuxd.enable = true;
|
|
||||||
joycond.enable = true;
|
|
||||||
|
|
||||||
udev.extraRules = ''
|
|
||||||
# Ethernet expansion card support
|
# Ethernet expansion card support
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
# There seems to be an issue with panel self-refresh (PSR) that
|
# There seems to be an issue with panel self-refresh (PSR) that
|
||||||
# causes hangs for users.
|
# causes hangs for users.
|
||||||
|
|
|
||||||
31
hosts/laptop/wluma.nix
Normal file
31
hosts/laptop/wluma.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
hardware.sensor.iio.enable = true; # brightness sensor
|
||||||
|
home-manager.users.jsw.services.wluma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
als.iio = {
|
||||||
|
path = "/sys/bus/iio/devices";
|
||||||
|
thresholds = {
|
||||||
|
"0" = "night";
|
||||||
|
"10" = "dark";
|
||||||
|
"100" = "normal";
|
||||||
|
"20" = "dim";
|
||||||
|
"200" = "bright";
|
||||||
|
"500" = "outdoors";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
output.backlight = [
|
||||||
|
{
|
||||||
|
capturer = "none";
|
||||||
|
name = "eDP-1";
|
||||||
|
path = "/sys/class/backlight/amdgpu_bl1";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
capturer = "none";
|
||||||
|
name = "keyboard";
|
||||||
|
path = "/sys/bus/platform/devices/cros-keyboard-leds.5.auto/leds/chromeos::kbd_backlight";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
./graphics.nix
|
|
||||||
./fingerprint.nix
|
./fingerprint.nix
|
||||||
./fwupd.nix
|
./fwupd.nix
|
||||||
|
./graphics.nix
|
||||||
|
./joycond.nix
|
||||||
./power.nix
|
./power.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12
system/hardware/joycond.nix
Normal file
12
system/hardware/joycond.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.niksos.joycond = lib.mkEnableOption "support for nintendo switch controllers.";
|
||||||
|
|
||||||
|
config.services = lib.mkIf config.niksos.joycond {
|
||||||
|
usbmuxd.enable = true;
|
||||||
|
joycond.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue