From fbcbdf9508da42e8ba0eb741dca3f29ceadec245 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 29 Jun 2022 08:08:39 +0000 Subject: img/installer: use a path for services.cage.program This allows us to drop a Nixpkgs patch. It doesn't seem like anything about the installer requires it to be installed globally at the moment. Signed-off-by: Alyssa Ross --- img/installer/configuration.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/img/installer/configuration.nix b/img/installer/configuration.nix index b403d45..06878e0 100644 --- a/img/installer/configuration.nix +++ b/img/installer/configuration.nix @@ -31,7 +31,8 @@ in fileSystems."/" = { fsType = "tmpfs"; }; services.cage.enable = true; - services.cage.program = "gnome-image-installer"; + services.cage.program = + "${pkgs.callPackage ./app {}}/bin/gnome-image-installer"; users.users.demo = { group = "demo"; isSystemUser = true; }; users.groups.demo = {}; security.polkit.extraConfig = readFile ./seat.rules; @@ -44,10 +45,7 @@ in boot.loader.systemd-boot.enable = true; - environment.systemPackages = with pkgs; [ - (callPackage ./app { }) - gnome.adwaita-icon-theme - ]; + environment.systemPackages = with pkgs; [ gnome.adwaita-icon-theme ]; systemd.tmpfiles.rules = [ "L+ /var/lib/eos-image-defaults/vendor-customer-support.ini - - - - ${app/vendor-customer-support.ini}" -- cgit 1.4.1