Commit graph

292 commits

Author SHA1 Message Date
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
Tobias Happ
fd73d76faf Fix inconsistent naming 2020-01-04 00:54:01 +01:00
Tobias Happ
02fc597dd5 Make arches and nixOnDroidChannelURL overridable 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
c4e71dd000 Tweak output of build.sh 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
c399757156 Add and update documentation in README 2020-01-04 00:54:01 +01:00
Alexander Sosedkin
b314d131b2 Exclude talloc.so, stop pulling in NDK 2020-01-04 00:54:01 +01:00
Tobias Happ
be94291b9b Fix etc cleanup and be more verbose 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
8207570eef Fix typos 2020-01-04 00:54:01 +01:00
Tobias Happ
a5c87e45c2 Force nix-env -u through setting version number 2020-01-04 00:54:01 +01:00
Tobias Happ
db4604d78d Fix conflicts with previous home-manager installations 2020-01-04 00:54:01 +01:00
Tobias Happ
c6a2a992fe Add missing toString for null values 2020-01-04 00:54:01 +01:00
Tobias Happ
4b0db68944 Silence command outputs and satisfy set -u 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
c16fab55c0 Set priority to same value as hm-install 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
2caabff900 Add migration script 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
15f5d97457 Add environment.etcBackupExtension option 2020-01-04 00:54:01 +01:00
Tobias Happ
6c80065616 Add stateVersion option 2020-01-04 00:54:01 +01:00
Tobias Happ
d87275a4f8 Install proot and login-inner only if no other session is running 2020-01-04 00:54:01 +01:00
Tobias Happ
3399a56e2c Update nixpkgs revision 2020-01-04 00:54:01 +01:00
Tobias Happ
ed05a33fc0 Install login scripts and proot only if needed 2020-01-04 00:54:01 +01:00
Tobias Happ
eb2fcc80f5 Add managing of proot-static 2020-01-04 00:54:01 +01:00
Tobias Happ
41fca9b4e9 Add rollback functionality in nix-on-droid 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
b52091eff6 Set login and loginInner to internal options 2020-01-04 00:54:01 +01:00
Tobias Happ
cd58e8dbd4 Link to profile in activation script instead of nix-on-droid 2020-01-04 00:54:01 +01:00
Tobias Happ
be7dfc7195 Set group and userName to readOnly
Should not be configurable by user because I do not know what kind of
operations would be necessary to rename a user.
2020-01-04 00:54:01 +01:00
Tobias Happ
cc77204f65 Add activationBefore and activationAfter options 2020-01-04 00:54:01 +01:00
Tobias Happ
867aa587ea Provide a functional workaround for crashing bash on inital build 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
cfe16dff4e Use three dots for ellipsis 2020-01-04 00:54:01 +01:00
Tobias Happ
33a13a24ae Fix home-manager module 2020-01-04 00:54:01 +01:00
Tobias Happ
74dfcb3cac Remove already installed package of example list 2020-01-04 00:54:01 +01:00
Tobias Happ
6110d4d282 Add PASSTHROUGH_OPTS in path-info too 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
41e39deaec Simplify return value of modules/default.nix 2020-01-04 00:54:01 +01:00
Tobias Happ
5546564104 Remove deprecated src directory 2020-01-04 00:54:01 +01:00
Tobias Happ
68e5b8302a Add updated pkgs tree 2020-01-04 00:54:01 +01:00
Tobias Happ
f40362898a Add modules 2020-01-04 00:54:01 +01:00
Tobias Happ
5cc656fffc Add nix-on-droid script 2020-01-04 00:54:01 +01:00
Tobias Happ
b7ad1d5d08 Set indent_size for shell script to 4 2020-01-04 00:54:01 +01:00
Alexander Sosedkin
a50586202c Add less to basic-environment, nix needs a $PAGER.
Fixes #27, see also https://github.com/NixOS/nix/issues/706.
2019-11-22 09:01:55 +01:00