hkalbasi
21629b43fd
Check if the selected shell is a directory
2024-09-06 23:36:25 +02:00
Alexander Sosedkin
bab7c453f4
login-inner: get rid of gnused in flake bootstrap
2024-07-08 01:14:32 +02:00
Alexander Sosedkin
45fcd2da39
modules, ...: get rid of config.build.arch
2024-06-30 20:29:37 +02:00
Alexander Sosedkin
d72ab2a167
add x86_64 arch
2024-06-30 20:29:37 +02:00
Alexander Sosedkin
039379abee
move from github:t184256/ to github:nix-community/
2023-09-13 13:35:41 +02: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
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
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
b10dd78e18
bootstrap: refactor special args to reduce inputs
2022-10-28 17:52:27 +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
2d4d541334
Sprinkle --extra-experimental-features nix-command
2022-07-01 00:50:28 +02: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
b775b46a7c
modules/environment/login/login-inner: correct greeting
2021-12-12 11:56:48 +01: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
Alexander Sosedkin
b4818078f3
use bashInteractive right after the installation
2020-05-02 15:54:45 +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
Alexander Sosedkin
38e7b238ae
Fix installation (missing session-init)
2020-01-07 07:10:05 +01:00
Tobias Happ
1e2f21748a
Add environment variable management
2020-01-07 05:14:30 +01:00
Tobias Happ
11679d167d
Remove obsolete build script
2020-01-04 00:54:01 +01:00
Tobias Happ
3a1e13fd20
Always use long option names for more clarity
2020-01-04 00:54:01 +01:00
Tobias Happ
af2e0b7af0
Remove bashism to be posix compliant
2020-01-04 00:54:01 +01:00
Alexander Sosedkin
b937531d13
Bundle talloc closure along with proot
2020-01-04 00:54:01 +01:00
Alexander Sosedkin
c8f577bad3
Fix reverting to a home-manager-less generation
2020-01-04 00:54:01 +01:00
Alexander Sosedkin
4018b987bf
Add a build script to patch paths and inject proot
2020-01-04 00:54:01 +01:00
Tobias Happ
4814fca275
Use bash strict mode for login
2020-01-04 00:54:01 +01:00
Tobias Happ
90e5fb2f49
Fix issues of lazy install of login-inner
...
If initalisation is done, a new session would result in a reinit as
login-inner is not installed. The file /etc/UNINTIALISED helps to
prevent this from happening.
The same applies to any logic like home-manager sourcing which would
only take effect after restarting the app.
2020-01-04 00:54:01 +01:00
Tobias Happ
e0ee316311
Fix path to default nix-on-droid.nix
2020-01-04 00:54:01 +01:00
Tobias Happ
0b49d57487
Check hm-session-vars only if home-manager is enabled
2020-01-04 00:54:01 +01:00
Tobias Happ
8df2d1d55c
Set writable bit for default config
2020-01-04 00:54:01 +01:00
Tobias Happ
141df13aa2
Add do not edit comments in login/login-inner
2020-01-04 00:54:01 +01:00
Tobias Happ
8ad0e40c2b
Use nix-env to set nix-profile link
2020-01-04 00:54:01 +01:00
Tobias Happ
5a915530b0
Create nix-profile link manually
2020-01-04 00:54:01 +01:00
Tobias Happ
f2867e8b20
Set GC_NPROCS to hide gc warning messages of nix
...
See https://github.com/NixOS/nix/issues/3237
2020-01-04 00:54:01 +01:00
Tobias Happ
f40362898a
Add modules
2020-01-04 00:54:01 +01:00