From 2261f577c897ab833aba36feb38e9d0bdd83d486 Mon Sep 17 00:00:00 2001 From: "Jorge O. Castro" Date: Fri, 17 Mar 2023 11:36:36 -0400 Subject: [PATCH] feat: switch over to determinate nix installer (#48) --- etc/nix/nix.conf | 1 - usr/bin/nix-install | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 etc/nix/nix.conf diff --git a/etc/nix/nix.conf b/etc/nix/nix.conf deleted file mode 100644 index 2c4e83fe7ed..00000000000 --- a/etc/nix/nix.conf +++ /dev/null @@ -1 +0,0 @@ -experimental-features = nix-command flakes \ No newline at end of file diff --git a/usr/bin/nix-install b/usr/bin/nix-install index a3696932940..05ab5309ce2 100755 --- a/usr/bin/nix-install +++ b/usr/bin/nix-install @@ -3,16 +3,16 @@ # thanks dnkmmr! sudo sleep 2 -echo "Adding selinux content to /nix" +echo "Adding SELinux content to /nix" sudo semanage fcontext -a -t etc_t '/nix/store/[^/]+/etc(/.*)?' ; sudo semanage fcontext -a -t lib_t '/nix/store/[^/]+/lib(/.*)?' ; sudo semanage fcontext -a -t systemd_unit_file_t '/nix/store/[^/]+/lib/systemd/system(/.*)?' ; sudo semanage fcontext -a -t man_t '/nix/store/[^/]+/man(/.*)?' ; sudo semanage fcontext -a -t bin_t '/nix/store/[^/]+/s?bin(/.*)?' ; sudo semanage fcontext -a -t usr_t '/nix/store/[^/]+/share(/.*)?' ; sudo semanage fcontext -a -t var_run_t '/nix/var/nix/daemon-socket(/.*)?' ; sudo semanage fcontext -a -t usr_t '/nix/var/nix/profiles(/per-user/[^/]+)?/[^/]+' sleep 1 sudo mkdir /var/lib/nix sleep 1 -echo "adding selinux content to /var/lib/nix" +echo "Adding SELinux content to /var/lib/nix" sudo semanage fcontext -a -t etc_t '/var/lib/nix/store/[^/]+/etc(/.*)?' ; sudo semanage fcontext -a -t lib_t '/var/lib/nix/store/[^/]+/lib(/.*)?' ; sudo semanage fcontext -a -t systemd_unit_file_t '/var/lib/nix/store/[^/]+/lib/systemd/system(/.*)?' ; sudo semanage fcontext -a -t man_t '/var/lib/nix/store/[^/]+/man(/.*)?' ; sudo semanage fcontext -a -t bin_t '/var/lib/nix/store/[^/]+/s?bin(/.*)?' ; sudo semanage fcontext -a -t usr_t '/var/lib/nix/store/[^/]+/share(/.*)?' ; sudo semanage fcontext -a -t var_run_t '/var/lib/nix/var/nix/daemon-socket(/.*)?' ; sudo semanage fcontext -a -t usr_t '/var/lib/nix/var/nix/profiles(/per-user/[^/]+)?/[^/]+' echo "Creating service files" sleep 1 -echo "creating SSL cert file" +echo "Creating SSL cert file" sudo tee /etc/systemd/system/nix-daemon.service.d/override.conf <