diff options
| -rw-r--r-- | modules/passthrough.nix | 8 | ||||
| -rw-r--r-- | modules/supergfxd.conf | 9 | 
2 files changed, 17 insertions, 0 deletions
| diff --git a/modules/passthrough.nix b/modules/passthrough.nix index ab68b8e..28c64f2 100644 --- a/modules/passthrough.nix +++ b/modules/passthrough.nix @@ -2,5 +2,13 @@  {    environment.systemPackages = with pkgs; [ +    supergfxctl    ]; + +  services.supergfxd.enable = true; + +  environment.etc."supergfxd.conf" = { +    source = ./supergfxd.conf; +    mode = "0644"; +  };  } diff --git a/modules/supergfxd.conf b/modules/supergfxd.conf new file mode 100644 index 0000000..7e21545 --- /dev/null +++ b/modules/supergfxd.conf @@ -0,0 +1,9 @@ +{ +  "mode": "Hybrid", +  "vfio_enable": true, +  "vfio_save": true, +  "always_reboot": false, +  "no_logind": false, +  "logout_timeout_s": 180, +  "hotplug_type": "None" +} | 
