From 8e281d00dca47d7c7733a3a29ca82397d5958649 Mon Sep 17 00:00:00 2001 From: Pierre Kisters <1524059+lhns@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:40:01 +0200 Subject: [PATCH] template: no GPU driver setup, Home Manager news silent targets.genericLinux.gpu would ask for a root setup (a tmpfiles.d link under /etc) for drivers that Nix-built GUI apps need and steam-frame-nix doesn't; news.display = "silent" drops the unread news notice on each switch (home-manager news still lists them). --- README.md | 1 + template/home.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 4ca3faf..b3f7fba 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ these two files ([`template/`](template), with more comments): home.homeDirectory = homeDirectory; home.stateVersion = "26.05"; targets.genericLinux.enable = true; + targets.genericLinux.gpu.enable = false; # no GPU drivers for Nix GUI apps (their setup is a root service) programs.home-manager.enable = true; programs.git = { # SteamOS's git, Home Manager writes its config enable = true; diff --git a/template/home.nix b/template/home.nix index 42c3c77..0434810 100644 --- a/template/home.nix +++ b/template/home.nix @@ -7,7 +7,11 @@ home.stateVersion = "26.05"; targets.genericLinux.enable = true; # non-NixOS integration + # Nix-built GUI apps without GPU drivers; steam-frame-nix doesn't need + # them and the setup would write a root service under /etc: + targets.genericLinux.gpu.enable = false; programs.home-manager.enable = true; # the `home-manager` command + news.display = "silent"; # `home-manager news` lists them # git credentials for HTTPS (`install.sh install --clone` uses them): # github.com through the GitHub CLI (gh auth login), other hosts from