mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
Use the shared helper to preserve argument boundaries in ExecStart, including embedded newlines. Keep legacy strings and Darwin behavior unchanged, and cover the newline case in a Linux regression test.
17 lines
779 B
Nix
17 lines
779 B
Nix
{ lib, pkgs, ... }:
|
|
(lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
|
|
nh = ./darwin/config.nix;
|
|
nh-clean-extra-args = ./darwin/clean-extra-args.nix;
|
|
nh-clean-extra-args-spaces = ./darwin/clean-extra-args-spaces.nix;
|
|
nh-clean-extra-args-string = ./darwin/clean-extra-args-string.nix;
|
|
nh-clean-extra-args-empty = ./darwin/clean-extra-args-empty.nix;
|
|
})
|
|
// (lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
|
nh = ./linux/config.nix;
|
|
nh-clean-extra-args = ./linux/clean-extra-args.nix;
|
|
nh-clean-extra-args-spaces = ./linux/clean-extra-args-spaces.nix;
|
|
nh-clean-extra-args-newline = ./linux/clean-extra-args-newline.nix;
|
|
nh-clean-extra-args-string = ./linux/clean-extra-args-string.nix;
|
|
nh-clean-extra-args-empty = ./linux/clean-extra-args-empty.nix;
|
|
})
|