applications: reformat

This commit is contained in:
‮rekcäH nitraM‮ 2025-03-22 14:05:41 +01:00 committed by Michael Hoang
parent 0d71cbf88d
commit 21d733a51f

View file

@ -1,19 +1,12 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.system;
in
{
config,
lib,
pkgs,
...
}:
{
options = {
};
config = {
system.build.applications = pkgs.buildEnv {
name = "system-applications";
paths = config.environment.systemPackages;
@ -42,11 +35,10 @@ in
if [ ! -e '/Applications/Nix Apps' ] \
|| ourLink '/Applications/Nix Apps'; then
ln -sfn ${cfg.build.applications}/Applications '/Applications/Nix Apps'
ln -sfn ${config.system.build.applications}/Applications '/Applications/Nix Apps'
else
echo "warning: /Applications/Nix Apps is not owned by nix-darwin, skipping App linking..." >&2
fi
'';
};
}