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
Zhong Jianxin
149e5c8869
Bind /dev/shm
...
POSIX semaphores need /dev/shm to work. Without this, python
multiprocessing gives errors:
```
Traceback (most recent call last):
...
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 13] Permission denied
```
Co-authored-by: Alexander Sosedkin <monk@unboiled.info>
Co-authored-by: Tobias Happ <tobias.happ@gmx.de>
2021-10-22 11:27:04 +02:00
Zhong Jianxin
31fd02ba4a
Run shell as login shell
...
So shell rc files (.profile/.bashrc/.zshrc/...) will be loaded
2021-10-22 11:26:30 +02:00
Tobias Happ
e4d19673af
nix: add package option
2021-07-27 22:01:03 +02:00
Alexander Sosedkin
c4efd68279
replace references to 20.09 with 21.05
2021-06-26 19:01:42 +02:00
Alexander Sosedkin
6d7edfc20b
pkgs: update talloc and proot
2021-06-26 19:01:42 +02:00
Alexander Sosedkin
9fcce0d7df
pkgs: update toolchain and nixpkgs for 21.05
2021-06-26 19:01:42 +02:00
Tobias Happ
36df7dac11
ca: add certificates in /etc/ssl/certs
2021-05-28 02:25:17 +02:00
Tobias Happ
ee772f1e1d
nix: allow configuration of nix.conf
2021-05-28 02:22:39 +02:00
Tobias Happ
92b2897b7c
networking: set resolv.conf in networking module
2021-05-28 02:22:39 +02:00
Tobias Happ
cfcb4acf16
networking: add basic /etc files for networking
2021-05-28 02:22:39 +02:00
Alexander Sosedkin
11a963ec62
nix-on-droid.nix.default: suggest inheriting overlays
2020-11-27 21:04:17 +01:00
Alexander Sosedkin
7b5a103e4a
build/config: add config.build.extraProotOptions
2020-11-27 21:04:17 +01:00
Alexander Sosedkin
239381d4f1
pkgs: update proot and talloc
2020-11-27 21:04:17 +01:00
Alexander Sosedkin
af8d9623e0
nixpkgs: update pinned nixpkgs to 20.09
2020-11-27 21:04:17 +01:00
Tobias Happ
d8a1d446f9
release: update all references to 20.03 with 20.09
2020-11-27 21:04:17 +01:00
Alexander Sosedkin
498091c3dc
Also update i686 proot hash
2020-07-11 12:16:28 +02:00
Alexander Sosedkin
9b4fb44da8
Patch proot (see discussion in #12 )
2020-07-07 13:42:44 +02:00
Tobias Happ
6012e0a8e6
Update pinned nixpkgs version
2020-06-12 09:33:59 +02:00
Alexander Sosedkin
b4818078f3
use bashInteractive right after the installation
2020-05-02 15:54:45 +02:00
Alexander Sosedkin
cb0905a4a0
Set HOME early
2020-04-27 08:51:47 +02:00
Tobias Happ
55d33896fd
Replace 19.09 channels with 20.03 ones
2020-04-25 18:26:29 +02:00
Alexander Sosedkin
df39b79d20
Warn on fallback on misconfigured login shell
2020-04-25 17:10:41 +02:00
Tobias Happ
ddfcddfebb
Add support for different login shells
2020-04-25 17:10:41 +02:00
Tobias Happ
4017e1f700
Add source nix.sh and hm-session-vars.sh in session-init.sh
2020-04-23 18:54:56 +02:00
Alexander Sosedkin
8ccf18b8ec
Rename the repository, dropping -bootstrap
2020-01-13 00:46:53 +01:00
Alexander Sosedkin
bbb0e8ffbf
Tweak user-facing messages
2020-01-09 22:50:40 +01:00
Tobias Happ
eb2f3bca34
login-inner: source session-init on initial build
2020-01-09 22:32:13 +01:00
Alexander Sosedkin
ad7345897f
Relicense to MIT License
...
Fixes: https://github.com/t184256/nix-on-droid-bootstrap/issues/44
2020-01-09 22:04:22 +01:00