nix/os: fix /bin activation and some cleanup

This commit is contained in:
steveej 2018-11-04 23:56:48 +01:00
parent f94d349398
commit 4ded9d0d70
2 changed files with 1 additions and 5 deletions

View file

@ -1,11 +1,6 @@
{ ... }: { ... }:
{ {
nixpkgs.config = {
allowBroken = false;
allowUnfree = true;
};
imports = [ imports = [
../../profiles/common/configuration.nix ../../profiles/common/configuration.nix
../../profiles/graphical/configuration.nix ../../profiles/graphical/configuration.nix

View file

@ -48,6 +48,7 @@
# Activation scripts for impure set up of paths in / # Activation scripts for impure set up of paths in /
system.activationScripts.bin = '' system.activationScripts.bin = ''
echo "setting up /bin..." echo "setting up /bin..."
mkdir -p /bin
ln -sfT ${pkgs.bash}/bin/bash /bin/.bash ln -sfT ${pkgs.bash}/bin/bash /bin/.bash
mv -Tf /bin/.bash /bin/bash mv -Tf /bin/.bash /bin/bash
''; '';