Commit graph

42 commits

Author SHA1 Message Date
Domen Kožar
9d24e62654
Merge pull request #130 from ncfavier/user-profile
install-nix.sh: ensure user profile comes before default profile in PATH
2022-03-30 10:08:23 +01:00
Domen Kožar
1f78d3968e
Merge pull request #132 from lovesegfault/fix-nix-conf-copy
fix: use sudo to place /etc/nix/nix.conf
2022-03-30 09:41:33 +01:00
Bernardo Meurer
d59a4dfc97 fix: use sudo to place /etc/nix/nix.conf 2022-03-29 14:00:26 -07:00
Bernardo Meurer
1544c90451
refactor(lib/install-nix): quiet down curl spam 2022-03-25 15:35:01 -07:00
Naïm Favier
3acf7e1fab
install-nix.sh: ensure user profile comes before default profile in PATH 2022-03-25 10:25:18 +01:00
Bernardo Meurer
8ae0a9f653 fix(lib/install-nix): use elevated privileges to create /etc/nix 2022-03-10 14:28:37 -08:00
Domen Kožar
76f9967600 try fixing act 2021-11-19 04:31:14 -06:00
zimbatm
802bde54e0
install-nix.sh: retry curl 5 times
If fetching the install script fails, don't keep the CI running forever.
2021-11-17 23:11:40 +01:00
zimbatm
21a5164e12
install-nix.sh: fix shellcheck issues 2021-11-17 23:09:47 +01:00
zimbatm
732b0240d2
install-nix.sh: remove unnecessary chmod
The script is invoked with sh and therefor doesn't need and executable
script.
2021-11-17 23:09:47 +01:00
zimbatm
06a240d7b6
install-nix.sh: use a temporary workdir
Don't leave temporary files around
2021-11-17 23:09:47 +01:00
Domen Kožar
489b4a2f78
Merge pull request #105 from cachix/resilient-install
Resilient installation
2021-11-11 16:25:04 -06:00
Domen Kožar
783053eda6 Resilient installation 2021-11-11 16:19:02 -06:00
Domen Kožar
c664ef3126 fix #97: install nix config correctly for single-user- mode 2021-11-08 10:36:25 -06:00
Domen Kožar
53fb0300a7 enable flakes & nix-command features by default 2021-11-05 15:32:10 -06:00
Domen Kožar
3e0e991ad2 github actions disable Spotlight by default now
https://github.com/actions/virtual-environments/pull/1683
2021-10-07 16:34:05 -05:00
Domen Kožar
0f50057886 Create X number of users where X = 2 * cpu cores 2021-09-08 16:21:13 +02:00
Sandro
7dec9775e5
Don't fall back to single user installation on darwin 2021-08-25 19:15:46 +02:00
Sandro
2fc50b7dbd
Only use nix-daemon when systemd is supported 2021-08-25 11:55:50 +02:00
Domen Kožar
82ce26d8eb
don't avoid running installer on self-hosted runners
The same check already runs on line 4
2021-08-17 22:35:12 +02:00
Manuel Mendez
76107d4eb5 Drop use of sudo when tee'ing nix.conf
sudo has stuck around since the early days of this repo when /etc/nix/nix.conf
was being created/mutated and required `sudo`. This was changed to a different/local
file where sudo is no longer needed in commit 642cfa0200.
2021-06-23 23:10:14 -04:00
Domen Kožar
20d5bae58c
test installer options 2021-02-21 15:41:47 +00:00
Domen Kožar
2e56a105a6
be able to pass installer options 2021-02-21 13:18:52 +00:00
zimbatm
2e278dead1
fix shellcheck warnings
It's unlikely that those env vars will contain whitespaces, but it's
good to keep the script clean.
2020-12-22 20:11:31 +01:00
zimbatm
334bb6100b
idempotent installation
Don't run the installer if Nix has already been installed on the host.
We assume that the installed Nix is already in the desired state.

This allows to share a given pipeline between hosted and self-hosted
runners. Usually the self-hosted runners are long-lived and already have
Nix installed.
2020-11-02 12:35:41 +01:00
Markus Wamser
8a37740405
replace deprecated functions
this should fix #50
2020-10-12 23:04:59 +02:00
Domen Kožar
4977bdad66
Update lib/install-nix.sh
Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2020-09-21 14:30:19 +02:00
Domen Kožar
775aed5fcb
Support self-hosted runners and always skip adding a channel 2020-09-21 14:16:30 +02:00
zimbatm
967d234ad8
-n => != "" 2020-08-25 18:56:36 +02:00
zimbatm
07dda1e608
more cleanup 2020-08-25 18:26:01 +02:00
zimbatm
d953a4ee09
add failing test 2020-08-25 18:17:09 +02:00
zimbatm
dad23f2092
add extra_nix_config options
This also cleans the install-nix.sh script a bit
2020-08-25 18:08:00 +02:00
Connor Prussin
80dbe69d87
Add retries when fetching nix install script 2020-07-08 15:13:47 -07:00
Tobias Happ
a744770f4b Add nix_path action paramter 2020-05-28 16:28:14 +02:00
Domen Kožar
f68249e909
Nix 2.3.5 2020-05-27 16:39:05 +02:00
Domen Kožar
10a7d51bce
allow skipping channel installation 2020-05-27 13:22:53 +02:00
Domen Kožar
642cfa0200
Prepare for Nix 2.3.5 2020-05-26 18:08:30 +02:00
Domen Kožar
afb82faed7
Allow overriding installation URL 2020-05-14 13:21:40 +02:00
Domen Kožar
ebed63b0a2
Allow installation path to redirect 2020-03-11 19:29:13 +01:00
Domen Kožar
ef735e86b9
Revert "Enable sandbox on darwin" 2020-02-26 17:17:21 +01:00
Domen Kožar
6e3de2b50b
Enable sandbox on darwin 2020-02-26 14:53:51 +01:00
Domen Kožar
dba72516a1
rewrite to bash 2020-02-26 14:23:08 +01:00