Skip to content

Commit

Permalink
Add CLI for for atticd
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebucatnetzer committed Apr 16, 2024
1 parent 4dbdbee commit df767dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixos/atticd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ let
exec ${cfg.package}/bin/atticadm -f ${checkedConfigFile} "$@"
'';

atticdShim = pkgs.writeShellScript "atticd" ''
exec ${cfg.package}/bin/atticd -f ${checkedConfigFile} "$@"
'';

atticadmWrapper = pkgs.writeShellScriptBin "atticd-atticadm" ''
exec systemd-run \
--quiet \
Expand Down Expand Up @@ -212,7 +216,7 @@ in
};
};

environment.systemPackages = [ atticadmWrapper ];
environment.systemPackages = [ atticadmWrapper atticdShim ];
}
(lib.mkIf cfg.useFlakeCompatOverlay {
nixpkgs.overlays = [ overlay ];
Expand Down

0 comments on commit df767dc

Please sign in to comment.