mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 09:36:15 +02:00
9 lines
408 B
Bash
Executable file
9 lines
408 B
Bash
Executable file
#! /bin/sh
|
|
if test -z "$prefix"; then prefix=/nix; fi
|
|
chown -Rf nix.nix $prefix/bin $prefix/etc $prefix/include $prefix/lib \
|
|
$prefix/libexec $prefix/man $prefix/share $prefix/var
|
|
chown nix.nix $prefix/store
|
|
chmod 6755 $prefix/bin/nix-env $prefix/bin/nix-instantiate $prefix/bin/nix-store
|
|
chmod 775 $prefix/var/nix/manifests
|
|
chmod 775 $prefix/var/nix/gcroots/tmp
|
|
chmod 775 $prefix/var/nix/gcroots/channels
|