Commit graph

192 commits

Author SHA1 Message Date
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
Shamrock Lee
3aa377bf01 activation.nix: fix for "activation from build result"
Solve #111
2021-09-19 19:17:49 +02:00
Alexander Sosedkin
97e1e71b84 modules/build/activation: use config.nix.package 2021-07-27 22:01:03 +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
08e047bb2c modules/workaround-make: deprecate 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
0a97cefe07 user: add options to manually set uid and gid 2021-05-28 02:22:39 +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
0dec5d4c97 modules/user: use runCommandLocal for idDerivation 2021-01-17 18:06:46 +01:00
Bruno Bigras
9c7c0a9672 add flake.nix
Co-authored-by: Tobias Happ <Gerschtli@users.noreply.github.com>
2021-01-17 18:06:46 +01:00
Bruno Bigras
abf7f56cb6 use the same nixpkgs and home-manager
Co-authored-by: Tobias Happ <Gerschtli@users.noreply.github.com>
2021-01-17 18:06:46 +01:00
Alexander Sosedkin
7bd0ebcef3 modules/home-manager: link profile to /etc 2020-11-27 21:04:17 +01:00
Alexander Sosedkin
11a963ec62 nix-on-droid.nix.default: suggest inheriting overlays 2020-11-27 21:04:17 +01:00
Alexander Sosedkin
d6c50d76b0 CHANGELOG.md: point users towards #91 2020-11-27 21:04:17 +01:00
Alexander Sosedkin
951a93757d modules/workaround-make: add workaround for make
See #91 for context.
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
Tobias Happ
e6c7adaca0 home-manager: enable useUserPackages for version >= 20.09 2020-11-27 21:04:17 +01:00
Tobias Happ
468b036d1d version: add 20.09 as possible stateVersion 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
886fbb050e Default to release-20.03 of nix-on-droid 2020-04-26 14:13:08 +02:00
Tobias Happ
e260c20a2e Add assertion for needed upgrade to nixpkgs 20.03 2020-04-26 14:01:09 +02:00
Tobias Happ
b4c185c146 Add assertion for needed upgrade to home-manager 20.03 2020-04-25 18:29:16 +02:00
Tobias Happ
55d33896fd Replace 19.09 channels with 20.03 ones 2020-04-25 18:26:29 +02:00
Tobias Happ
6e85b5cd08 Add 20.03 stateVersion 2020-04-25 18:26:29 +02:00
Tobias Happ
c54509d26a Add useGlobalPkgs option 2020-04-25 18:26:29 +02:00
Tobias Happ
0e53bd6b1f Set extendedLib for home-manager 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
Tobias Happ
93d081c3bc Add htop overlay 2020-01-14 17:45:11 +01:00
Alexander Sosedkin
8ccf18b8ec Rename the repository, dropping -bootstrap 2020-01-13 00:46:53 +01:00
Tobias Happ
9323f2f573 time: Add timeZone option 2020-01-12 20:48:41 +01:00
Tobias Happ
7e6946c627 Add nixpkgs.config and overlays option 2020-01-12 20:33:03 +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