mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
treewide: use consitent casing of Nix-on-Droid/nix-on-droid
Whenever Nix-on-Droid references the project or application it should be upper-cased. When nix-on-droid is referencing the CLI-tool or is used as some ID, it should be lower-cased.
This commit is contained in:
parent
b76fb0954e
commit
ae0569fb92
22 changed files with 49 additions and 49 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ in
|
|||
default = { };
|
||||
type = types.attrs;
|
||||
description = ''
|
||||
Activation scripts for the nix-on-droid environment.
|
||||
Activation scripts for the Nix-on-Droid environment.
|
||||
'' + activationOptionDescriptionSuffix;
|
||||
};
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ in
|
|||
default = { };
|
||||
type = types.attrs;
|
||||
description = ''
|
||||
Activation scripts for the nix-on-droid environment that
|
||||
Activation scripts for the Nix-on-Droid environment that
|
||||
need to be run first.
|
||||
'' + activationOptionDescriptionSuffix;
|
||||
};
|
||||
|
|
@ -101,7 +101,7 @@ in
|
|||
default = { };
|
||||
type = types.attrs;
|
||||
description = ''
|
||||
Activation scripts for the nix-on-droid environment that
|
||||
Activation scripts for the Nix-on-Droid environment that
|
||||
need to be run last.
|
||||
'' + activationOptionDescriptionSuffix;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ in
|
|||
nix-on-droid = mkOption {
|
||||
type = types.str;
|
||||
default = defaultNixOnDroidChannel;
|
||||
description = "Channel URL for nix-on-droid.";
|
||||
description = "Channel URL for Nix-on-Droid.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ in
|
|||
nix-on-droid = mkOption {
|
||||
type = types.str;
|
||||
default = defaultNixOnDroidFlake;
|
||||
description = "Flake URL for nix-on-droid.";
|
||||
description = "Flake URL for Nix-on-Droid.";
|
||||
};
|
||||
|
||||
inputOverrides = mkEnableOption "" // {
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ in
|
|||
Backup file extension.
|
||||
</para><para>
|
||||
If a file in <filename>/etc</filename> already exists and is not managed
|
||||
by nix-on-droid, the activation fails because we do not overwrite unknown
|
||||
by Nix-on-Droid, the activation fails because we do not overwrite unknown
|
||||
files. When an extension is provided through this option, the original
|
||||
file will be moved in respect of the backup extension and the activation
|
||||
executes successfully.
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@ let
|
|||
in
|
||||
|
||||
writeText "login-inner" ''
|
||||
# This file is generated by nix-on-droid. DO NOT EDIT.
|
||||
# This file is generated by Nix-on-Droid. DO NOT EDIT.
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
${lib.optionalString (config.environment.motd != null) ''
|
||||
if [ "$#" -eq 0 ]; then # if script is called from within nix-on-droid app
|
||||
if [ "$#" -eq 0 ]; then # if script is called from within Nix-on-Droid app
|
||||
echo "${lib.removeSuffix "\n" config.environment.motd}"
|
||||
fi
|
||||
''}
|
||||
|
|
@ -61,13 +61,13 @@ writeText "login-inner" ''
|
|||
|
||||
DEFAULT_CONFIG=$(${nix}/bin/nix-instantiate --eval --expr "<nix-on-droid/modules/environment/login/nix-on-droid.nix.default>")
|
||||
|
||||
echo "Installing first nix-on-droid generation..."
|
||||
echo "Installing first Nix-on-Droid generation..."
|
||||
${nixCmd} build --no-link --file "<nix-on-droid>" nix-on-droid
|
||||
$(${nixCmd} path-info --file "<nix-on-droid>" nix-on-droid)/bin/nix-on-droid switch --file $DEFAULT_CONFIG
|
||||
|
||||
. "${config.user.home}/.nix-profile/etc/profile.d/nix-on-droid-session-init.sh"
|
||||
|
||||
echo "Copying default nix-on-droid config..."
|
||||
echo "Copying default Nix-on-Droid config..."
|
||||
mkdir --parents $HOME/.config/nixpkgs
|
||||
cp $DEFAULT_CONFIG $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||
chmod u+w $HOME/.config/nixpkgs/nix-on-droid.nix
|
||||
|
|
@ -88,7 +88,7 @@ writeText "login-inner" ''
|
|||
"${config.user.home}/.config/nix-on-droid/flake.nix"
|
||||
''}
|
||||
|
||||
echo "Installing first nix-on-droid generation..."
|
||||
echo "Installing first Nix-on-Droid generation..."
|
||||
${nixCmd} run ${config.build.flake.nix-on-droid} -- switch --flake ${config.user.home}/.config/nix-on-droid
|
||||
|
||||
. "${config.user.home}/.nix-profile/etc/profile.d/nix-on-droid-session-init.sh"
|
||||
|
|
@ -97,21 +97,21 @@ writeText "login-inner" ''
|
|||
|
||||
echo
|
||||
echo "Congratulations! Now you have Nix installed with some default packages like bashInteractive, \
|
||||
coreutils, cacert and, most importantly, nix-on-droid itself to manage local configuration, see"
|
||||
coreutils, cacert and, most importantly, Nix-on-Droid itself to manage local configuration, see"
|
||||
echo " nix-on-droid help"
|
||||
|
||||
if [[ "$USE_FLAKE" == 0 ]]; then
|
||||
echo "or the config file"
|
||||
echo " ~/.config/nixpkgs/nix-on-droid.nix"
|
||||
echo
|
||||
echo "You can go for the bare nix-on-droid setup or you can configure your phone via home-manager. See \
|
||||
echo "You can go for the bare Nix-on-Droid setup or you can configure your phone via home-manager. See \
|
||||
config file for further information."
|
||||
echo
|
||||
else
|
||||
echo "or the flake"
|
||||
echo " ~/.config/nix-on-droid/"
|
||||
echo
|
||||
echo "You can go for the bare nix-on-droid setup or you can configure your phone via home-manager. See \
|
||||
echo "You can go for the bare Nix-on-Droid setup or you can configure your phone via home-manager. See \
|
||||
other templates in ${config.build.flake.nix-on-droid}."
|
||||
echo
|
||||
fi
|
||||
|
|
@ -125,7 +125,7 @@ writeText "login-inner" ''
|
|||
''}
|
||||
|
||||
usershell="${config.user.shell}"
|
||||
if [ "$#" -gt 0 ]; then # if script is not called from within nix-on-droid app
|
||||
if [ "$#" -gt 0 ]; then # if script is not called from within Nix-on-Droid app
|
||||
exec /usr/bin/env "$@"
|
||||
elif [ -x "$usershell" ]; then
|
||||
exec -a "-''${usershell##*/}" "$usershell"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ in
|
|||
|
||||
writeScript "login" ''
|
||||
#!/system/bin/sh
|
||||
# This file is generated by nix-on-droid. DO NOT EDIT.
|
||||
# This file is generated by Nix-on-Droid. DO NOT EDIT.
|
||||
set -eu -o pipefail
|
||||
|
||||
export USER="${config.user.userName}"
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ in
|
|||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = ''
|
||||
A list of URLs of substituters. The official NixOS and nix-on-droid
|
||||
A list of URLs of substituters. The official NixOS and Nix-on-Droid
|
||||
substituters are added by default.
|
||||
'';
|
||||
};
|
||||
|
|
@ -119,7 +119,7 @@ in
|
|||
description = ''
|
||||
A list of public keys. When paths are copied from another Nix store (such as a
|
||||
binary cache), they must be signed with one of these keys. The official NixOS
|
||||
and nix-on-droid public keys are added by default.
|
||||
and Nix-on-Droid public keys are added by default.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ in
|
|||
paths = cfg.packages;
|
||||
|
||||
meta = {
|
||||
description = "Environment of packages installed through nix-on-droid.";
|
||||
description = "Environment of packages installed through Nix-on-Droid.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ in
|
|||
'';
|
||||
type = types.nullOr types.lines;
|
||||
description = ''
|
||||
Text to show on every new shell created by nix-on-droid.
|
||||
Text to show on every new shell created by Nix-on-Droid.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ with lib;
|
|||
type = types.enum [ "19.09" "20.03" "20.09" "21.05" "21.11" "22.05" ];
|
||||
default = "19.09";
|
||||
description = ''
|
||||
It is occasionally necessary for nix-on-droid to change
|
||||
It is occasionally necessary for Nix-on-Droid to change
|
||||
configuration defaults in a way that is incompatible with
|
||||
stateful data. This could, for example, include switching the
|
||||
default data format or location of a file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue