Skip to content

Commit

Permalink
fix: add attribution (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Mar 17, 2023
1 parent f627711 commit e16ae0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/bin/nix-install
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# original script here: https://github.com/dnkmmr69420/nix-with-selinux/blob/main/silverblue-installer.sh
# thanks dnkmmr!

sudo sleep 2
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/[^/]+)?/[^/]+'
Expand Down Expand Up @@ -90,4 +93,4 @@ sudo setenforce Enforcing
sleep 1

echo "Reboot your system by typing"
echo "systemctl reboot"
echo "systemctl reboot"

0 comments on commit e16ae0a

Please sign in to comment.