summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-13 18:23:43 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-13 18:23:43 +0530
commitfb7badd79b37f267c3ff5737c05eeb2f0fe1207f (patch)
tree41eed07b01dd2a71d3f110260162cc8e57f996ef /modules
parent0afbfb63a19b71769448fe186d46a99fd7a1c2fe (diff)
update
Diffstat (limited to 'modules')
-rw-r--r--modules/passthrough.nix8
-rw-r--r--modules/supergfxd.conf9
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"
+}