Upgrade to Big Sur

This commit is contained in:
Smaug123
2021-10-10 12:51:36 +01:00
parent f461d28f5c
commit 0ac9ec6e77
3 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
install_nix () {
echo "Installing Nix..."
curl -L https://nixos.org/nix/install | sh
curl -L https://nixos.org/nix/install | sh -s -- --darwin-use-unencrypted-nix-store-volume --daemon || exit 1
echo "Nix installed."
}
@@ -14,12 +14,12 @@ install_darwin_build () {
echo "nix-darwin installed."
}
ln -s . ~/.nixpkgs || exit 1
echo "Skipping link" || ln -s . ~/.nixpkgs || exit 1
nix-build --version || install_nix || exit 1
darwin-rebuild changelog || install_darwin_build || exit 1
nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager || exit 1
nix-channel --update || exit 1
darwin-rebuild || exit 1
darwin-rebuild changelog || install_darwin_build || exit 1
NIX_PATH="darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:/nix/var/nix/profiles/per-user/Patrick/channels:$NIX_PATH" darwin-rebuild switch || exit 1

View File

@@ -174,6 +174,7 @@ let
in
{
nix.useDaemon = true;
imports = [ <home-manager/nix-darwin> ];
home-manager.useGlobalPkgs = true;
@@ -186,11 +187,11 @@ in
environment.systemPackages =
[
pkgs.alacritty
pkgs.keepassxc
pkgs.rustc
pkgs.cargo
python
#vscode-with-extensions
#pkgs.keepassxc
];
#nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [

View File

@@ -1,7 +1,6 @@
{ config, pkgs, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;