diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-13 18:23:43 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-13 18:23:43 +0530 |
| commit | fb7badd79b37f267c3ff5737c05eeb2f0fe1207f (patch) | |
| tree | 41eed07b01dd2a71d3f110260162cc8e57f996ef /modules | |
| parent | 0afbfb63a19b71769448fe186d46a99fd7a1c2fe (diff) | |
update
Diffstat (limited to 'modules')
| -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" +} |
