nixos/scripts/install-home-manager.sh

10 lines
352 B
Bash
Raw Permalink Normal View History

2022-01-31 12:42:56 +01:00
#!/usr/bin/env bash
2023-02-10 09:28:56 +01:00
# 1. install Nix in single user mode
. $HOME/.nix-profile/etc/profile.d/nix.sh
mkdir -p ~/.config/nix
2023-11-26 12:14:24 +01:00
echo "experimental-features = nix-command flakes" >~/.config/nix/nix.conf
2021-11-20 16:30:25 +01:00
nix-shell '<home-manager>' -A install
2021-11-20 17:16:43 +01:00
rm ~/.config/nixpkgs/home.nix
2023-02-10 09:28:56 +01:00
ln -s $HOME/.nixos/flake.nix $HOME/.config/nixpkgs/flake.nix
2023-11-26 12:14:08 +01:00
home-manager switch |& nom