summary refs log tree commit diff
diff options
context:
space:
mode:
authorBryan Gardiner <bog@khumba.net>2021-04-06 19:12:33 -0700
committerBryan Gardiner <bog@khumba.net>2021-04-11 20:00:04 -0700
commit1ccae60c2cf7c5fe7caa7adad234532b92fb293d (patch)
treef0a88491ffd0f54b4fed3a09914ce0efd0d6d858
parent0c27bb45a0e3a1c5f0834cdc6764671f303ea9b0 (diff)
downloadnixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar.gz
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar.bz2
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar.lz
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar.xz
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.tar.zst
nixpkgs-1ccae60c2cf7c5fe7caa7adad234532b92fb293d.zip
nixos/system76: add system76-firmware to environment.systemPackages
-rw-r--r--nixos/modules/hardware/system-76.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/hardware/system-76.nix b/nixos/modules/hardware/system-76.nix
index 48eb63f4f22..ed661fd3303 100644
--- a/nixos/modules/hardware/system-76.nix
+++ b/nixos/modules/hardware/system-76.nix
@@ -17,6 +17,9 @@ let
 
   firmware-pkg = pkgs.system76-firmware;
   firmwareConfig = mkIf cfg.firmware-daemon.enable {
+    # Make system76-firmware-cli usable by root from the command line.
+    environment.systemPackages = [ firmware-pkg ];
+
     services.dbus.packages = [ firmware-pkg ];
 
     systemd.services.system76-firmware-daemon = {