Commit graph

110 commits

Author SHA1 Message Date
Alexander Sosedkin
f636824b08 set stable version to 23.05 2023-06-30 18:57:34 +02:00
jarkad
02c3b2d260 modules/environment/path: add extraOutputsToInstall option 2023-05-16 18:23:38 +02:00
Tobias Happ
3dfb9d44b5 bootstrap: update nixpkgs version 2022-12-04 17:04:17 +01:00
Tobias Happ
c70a1d9745 set stable version to 22.11 2022-12-04 17:04:17 +01:00
Tobias Happ
5e7d6d1214 environment.path: fix installation with nix profile
Manual removal and installation as two non-atomical steps is required
because of https://github.com/NixOS/nix/issues/6349.
2022-12-04 13:09:02 +01:00
Tobias Happ
ae0569fb92 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.
2022-11-20 20:15:31 +01:00
Tobias Happ
b76fb0954e treewide: improve option descriptions 2022-11-20 20:15:31 +01:00
Tobias Happ
5ebbbe418a treewide: replace literalExample with literalExpression 2022-11-20 20:15:31 +01:00
Tobias Happ
6a345626c0 add support for default configuration in flake.nix 2022-11-08 20:29:52 +01:00
Tobias Happ
ffac515cfb environment.motd: add option 2022-11-08 20:29:52 +01:00
Tobias Happ
4ab4767d50 treewide: format code 2022-11-06 20:26:32 +01:00
Alexander Sosedkin
4050f7f992 login-inner: fix default choice on bootstrap flakes prompt 2022-10-29 12:47:15 +02:00
Tobias Happ
1dc1cd67a4 bootstrap: override flake inputs if needed 2022-10-28 17:52:27 +02:00
Tobias Happ
3629a12231 merge multiple extra-experimental-features args 2022-10-28 17:52:27 +02:00
Tobias Happ
c0b87d967f bootstrap: add prompt to bootstrap with flakes setup 2022-10-28 17:52:27 +02:00
Tobias Happ
c4365ef010 environment.path: add support for nix profile 2022-10-28 17:52:27 +02:00
Tobias Happ
d21dce1a41 docs: update examples and default config
Show recommended setups instead of more error-prone examples.
2022-10-28 17:52:27 +02:00
Tobias Happ
b10dd78e18 bootstrap: refactor special args to reduce inputs 2022-10-28 17:52:27 +02:00
Tobias Happ
7d1ed0fbaa treewide: apply nixpkgs-fmt 2022-10-04 00:43:13 +02:00
Tobias Happ
c170d27234 environment.nix: fix NIX_PATH environment variable 2022-10-04 00:35:37 +02:00
Zhaofeng Li
49e10dbb52 login: Add fake /proc/uptime workaround for ps
Fixes #77.
2022-09-24 00:32:10 +02:00
Zhaofeng Li
dd0d1194a8 Remove dependency on coreutils from bootstrap
The Nix distribution tarball no longer includes coreutils.
2022-09-13 08:53:06 +02:00
Alexander Sosedkin
0ad6321f79 pkgs: use non-prebuilt SDK 2022-07-09 12:25:31 +02:00
Alexander Sosedkin
0de95f9e9f pkgs/cross-compiling/talloc-static: update, build differently 2022-07-03 18:54:21 +02:00
Alexander Sosedkin
d1f52f2e1d Update 21.11 references to 22.05 2022-07-01 00:50:28 +02:00
Alexander Sosedkin
b4b889845c pkgs/proot-termux: update 2022-07-01 00:50:28 +02:00
Alexander Sosedkin
0dbf0f5618 Update pinned nixpkgs version to 22.05 2022-07-01 00:50:28 +02:00
Alexander Sosedkin
2d4d541334 Sprinkle --extra-experimental-features nix-command 2022-07-01 00:50:28 +02:00
Zhong Jianxin
e7e7d1347f modules/environment/login: Fix fakeProcStat path 2022-04-22 09:52:19 +02:00
Alexander Sosedkin
f246a9e82d modules/environment/login: avoid no fakeProcStat warning 2022-04-17 21:49:46 +02:00
Zhong Jianxin
4717d351f4 nix: Rename extraConfig to extraOptions 2022-04-17 21:46:52 +02:00
Zhong Jianxin
5c5c44b5b7 nix: Add registry option 2022-04-17 21:46:52 +02:00
Zhong Jianxin
1a8ae407f5 nix: Add nixPath option 2022-04-17 21:46:52 +02:00
Josh Robson Chase
07c4406897 module/nix: Add backward compat with nixos for binary caches 2022-01-02 21:39:37 +01:00
Zhong Jianxin
f88b0825c5 Provide fake /proc/stat if it's not readable
to make unpatched htop work
2021-12-21 14:52:51 +01:00
Alexander Sosedkin
98eca42af0 login: enable --sysvipc proot extension
Fixes: #114
2021-12-17 14:41:21 +01:00
Alexander Sosedkin
0beab12f8d modules/environment/login: simplify to single arch 2021-12-17 00:21:33 +01:00
Alexander Sosedkin
7aeb529aab drop i686 support without simplifying code 2021-12-17 00:21:33 +01:00
Tobias Happ
7e00a63733 session-init: consistently use the config for resolving home directory
It is not helpful to switch between `$HOME` and the config option for
resolving the path of the home directory.
2021-12-15 22:42:54 +01:00
Tobias Happ
bb8470da1d session-init: only add to NIX_PATH if value is not present yet 2021-12-15 22:42:54 +01:00
Tobias Happ
dcd8c07cd8 login: source session init in shell configs
If a shell is not started via login-inner (e.g. via ssh) it will not
source the sessionInit script. The solution is to source this file in
the respective config files for bash and zsh (more shell support can be
easily added).

The -u option is not necessary for the few lines in login-inner and
should not be activated after sourcing sessionInit in bash or zsh setup.
2021-12-15 22:42:54 +01:00
Zhong Jianxin
543c3bfdee Remove set +u/-u
Lots of zsh plugins fail to load when login via sshd:

```
$ ssh -p 8022 nix-on-droid@192.168.0.1
(eval):28: __zoxide_hooked: parameter not set
(eval):8: precmd_functions[(r)_direnv_hook]: parameter not set
async_init:1: ASYNC_INIT_DONE: parameter not set
prompt_pure_setup:10: prompt_newline: parameter not set
/nix/store/drwh7ngjshx794jvrvfvaz7wacjhkywi-zsh-fast-syntax-highlighting-1.54/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh:48: ZPLG_CUR_PLUGIN: parameter not set
```
2021-12-15 22:42:54 +01:00
Alexander Sosedkin
856d931972 deduplicate proot for device and proot for fakedroid 2021-12-13 21:01:34 +01:00
Alexander Sosedkin
b775b46a7c modules/environment/login/login-inner: correct greeting 2021-12-12 11:56:48 +01:00
Tobias Happ
7b9ba13632 session-init: add support for nix 2.4
See https://github.com/NixOS/nixpkgs/issues/149791.
2021-12-11 22:44:53 +01:00
Alexander Sosedkin
983fe12a88 pkgs/cross-compiling/proot-termux: update 2021-12-11 22:44:53 +01:00
Tobias Happ
be67cc42b4 Remove workaround in default nix-on-droid config
Workaround is with home-manager 21.11 no longer needed.
2021-12-11 22:44:53 +01:00
Tobias Happ
ef55157fb7 Update stateVersions and channel versions to 21.11 2021-12-11 22:44:53 +01:00
Shamrock Lee
5c838f508b nix-on-droid.nix.default: fix the overlays inheritance of the home-manager config 2021-10-22 12:09:16 +02:00
Alexander Sosedkin
3b4fd630ae login.nix: fixup, remove double-binding of /dev/shm
Reported-by: Zhong Jianxin <azuwis@gmail.com>
2021-10-22 11:38:38 +02:00