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 = [
|
||||
./hardware-configuration.nix
|
||||
./virt.nix
|
||||
./wluma.nix
|
||||
];
|
||||
|
||||
# services.printing = {
|
||||
# enable = true;
|
||||
# startWhenNeeded = true;
|
||||
# };
|
||||
# hardware.printers = {
|
||||
# ensureDefaultPrinter = "Broeder";
|
||||
# ensurePrinters = [
|
||||
# {
|
||||
# deviceUri = "ipp://192.168.1.33/ipp";
|
||||
# location = "home";
|
||||
# name = "Broeder";
|
||||
# model = "everywhere";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
services.printing = {
|
||||
enable = true;
|
||||
startWhenNeeded = true;
|
||||
};
|
||||
hardware.printers = {
|
||||
ensureDefaultPrinter = "Broeder";
|
||||
ensurePrinters = [
|
||||
{
|
||||
deviceUri = "ipp://192.168.1.33/ipp";
|
||||
location = "home";
|
||||
name = "Broeder";
|
||||
model = "everywhere";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.evolution.enable = true; # FIXME: move to appropiate place.
|
||||
# programs.evolution.enable = true; # FIXME: move to appropiate place.
|
||||
niksos = {
|
||||
joycond = false; #NOTE: enable when game night lol
|
||||
fingerprint = true;
|
||||
bluetooth = true;
|
||||
portable = {
|
||||
|
|
@ -44,49 +46,12 @@
|
|||
kde = true;
|
||||
};
|
||||
};
|
||||
home-manager.users.jsw = {
|
||||
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
|
||||
home-manager.users.jsw.wayland.windowManager.hyprland.settings.monitor = ["eDP-1,2880x1920@120,0x0,1.5,vrr,1"];
|
||||
|
||||
services = {
|
||||
usbmuxd.enable = true;
|
||||
joycond.enable = true;
|
||||
|
||||
udev.extraRules = ''
|
||||
services.udev.extraRules = ''
|
||||
# Ethernet expansion card support
|
||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
|
||||
'';
|
||||
};
|
||||
|
||||
boot.kernelParams = [
|
||||
# There seems to be an issue with panel self-refresh (PSR) that
|
||||
# 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 = [
|
||||
./bluetooth.nix
|
||||
./graphics.nix
|
||||
./fingerprint.nix
|
||||
./fwupd.nix
|
||||
./graphics.nix
|
||||
./joycond.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