Commit graph

420 commits

Author SHA1 Message Date
Alexander Sosedkin
9543f41de9 modules/terminal: make font configurable 2022-09-22 23:04:41 +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
Zhaofeng Li
6a97d9e697 nix-directory: Bump bootstrap nix to 2.11.0 2022-09-13 08:53:06 +02:00
Alexander Sosedkin
d49fd3a0c8 CHANGELOG: Release 22.05 2022-07-25 21:37:17 +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
b286ac1aac pkgs/nix-directory: update nix 2022-07-01 00:50:28 +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
Alexander Sosedkin
a7a2d56937 .github/workflows: use 22.05 2022-07-01 00:50:28 +02:00
Alexander Sosedkin
979900f93b CHANGELOG: add notes for previous changes 2022-07-01 00:50:28 +02:00
Matthew Toohey
949f20f8ba fix: don't force the use of nix_2_4 for flakes when nix is new enough 2022-06-08 07:57:24 +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
Alexander Sosedkin
c1b61fc340 overlays/htop: remove since /proc/stat faking is enough 2021-12-21 21:44:19 +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
e87f42e3a2 modules/upgrade: fix missing /dev/shm on upgrade from <21.11
Fixes: #162
2021-12-17 12:46:55 +01:00
Alexander Sosedkin
0beab12f8d modules/environment/login: simplify to single arch 2021-12-17 00:21:33 +01:00
Alexander Sosedkin
d2e9c379df pkgs/nix-directory.nix: simplify to one arch 2021-12-17 00:21:33 +01:00
Alexander Sosedkin
cf5364dc55 flake.nix: throw on unsupported system type 2021-12-17 00:21:33 +01:00
Alexander Sosedkin
e81bd1ae37 flake.nix: simplify to single arch 2021-12-17 00:21:33 +01:00
Alexander Sosedkin
9ee03e218d ci.nix: 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
c53afdbcbb docs: clean up leading asterisks 2021-12-16 21:37:48 +01:00
Tobias Happ
b5325c18f6 session-init: fix option type and description 2021-12-15 22:42:54 +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
Tobias Happ
4ade388b9a tests: do not create out link from proot build 2021-12-15 22:04:43 +01:00
Tobias Happ
3114584c57 bootstrap: ensure that the correct pkgs instance is used 2021-12-15 22:04:43 +01:00
Tobias Happ
52efd98b5e tests: add cleanup logic for changed nix-channels 2021-12-15 22:04:43 +01:00
Tobias Happ
d8f098c8e5 tests: only expose env variables in setup that are used 2021-12-15 22:04:43 +01:00
Tobias Happ
619e53ac72 tests: simplify clean up logic for ~/.config/nixpkgs 2021-12-15 22:04:43 +01:00
Tobias Happ
0c2f293502 tests: only backup ~/.config/nixpkgs
Other files/directories are not modified by the general test setup.
2021-12-15 22:04:43 +01:00
Tobias Happ
e687e46e2f tests: update flake tests to use new --flake argument 2021-12-15 22:04:43 +01:00
Tobias Happ
248632699e tests: increase readability through small helper functions 2021-12-15 22:04:43 +01:00
Tobias Happ
7f983228fe tests: add assertions only relevant for the specific test case 2021-12-15 22:04:43 +01:00
Tobias Happ
726f74d9ec tests: restore the initial generation before each test
When developing it can happen to break the nix-on-droid script. If so,
this fix will ensure that each test has a working nix-on-droid script
available.
2021-12-15 22:04:43 +01:00
Tobias Happ
9477418fe6 tests: use bats pretty formatter 2021-12-15 22:04:43 +01:00
Tobias Happ
9f5f608d2b docs: update README for new flake support 2021-12-15 22:04:43 +01:00
Tobias Happ
49eb3efe98 flake: update lib module for more flexibilty 2021-12-15 22:04:43 +01:00
Tobias Happ
3d3441de44 nix-on-droid: add native support for flakes 2021-12-15 22:04:43 +01:00