fix(gui): Accidentaly deleting settings
This commit is contained in:
parent
1e963ed08f
commit
519a8608fb
1 changed files with 20 additions and 18 deletions
|
@ -3,8 +3,8 @@ let
|
||||||
cfg = config.jconfig.gui;
|
cfg = config.jconfig.gui;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf (config.jconfig.enable && cfg.enable)
|
config = lib.mkMerge [
|
||||||
{
|
(lib.mkIf (config.jconfig.enable && cfg.enable) {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.gnome.adwaita-icon-theme
|
pkgs.gnome.adwaita-icon-theme
|
||||||
pkgs.adwaita-qt
|
pkgs.adwaita-qt
|
||||||
|
@ -56,7 +56,8 @@ in
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.uinput.enable = true;
|
hardware.uinput.enable = true;
|
||||||
hardware.steam-hardware.enable = cfg.steamHardwareSupport;
|
hardware.steam-hardware.enable = cfg.steamHardwareSupport;
|
||||||
} // lib.mkIf cfg."8bitdoFix" {
|
})
|
||||||
|
(lib.mkIf cfg."8bitdoFix" {
|
||||||
# Udev rules to start or stop systemd service when controller is connected or disconnected
|
# Udev rules to start or stop systemd service when controller is connected or disconnected
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# May vary depending on your controller model, find product id using 'lsusb'
|
# May vary depending on your controller model, find product id using 'lsusb'
|
||||||
|
@ -73,5 +74,6 @@ in
|
||||||
ExecStart = "${pkgs.xboxdrv}/bin/xboxdrv --mimic-xpad --silent --type xbox360 --device-by-id %I --force-feedback";
|
ExecStart = "${pkgs.xboxdrv}/bin/xboxdrv --mimic-xpad --silent --type xbox360 --device-by-id %I --force-feedback";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue