1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 16:11:06 +01:00

generic-linux-gpu: add module

This commit is contained in:
Jure Varlec 2025-10-22 19:01:48 +02:00 committed by Austin Horstman
parent 066874efb5
commit 193e44d316
10 changed files with 332 additions and 1 deletions

View file

@ -0,0 +1,13 @@
#!/bin/bash
set -e
# Install the systemd service file and ensure that the store path won't be
# garbage-collected as long as it's installed.
unit_path=/etc/systemd/system/non-nixos-gpu.service
ln -sf @@resources@@/non-nixos-gpu.service "$unit_path"
ln -sf "$unit_path" "@@statedir@@"/gcroots/non-nixos-gpu.service
systemctl daemon-reload
systemctl enable non-nixos-gpu.service
systemctl restart non-nixos-gpu.service