From 5123054e5d52d94daf6164bf9f45f7b20454712f Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 8 May 2023 21:07:09 -0500 Subject: [PATCH] Adjusted update wrapper (phoenix) for flake --- user/home.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/user/home.nix b/user/home.nix index 5ef7ebf1..30ab75f9 100644 --- a/user/home.nix +++ b/user/home.nix @@ -3,6 +3,8 @@ let myName = "emmet"; + myDotfilesDir = "~/dotfiles/"; + # My shell aliases myAliases = { ls = "exa --icons -l -T -L=1"; @@ -20,13 +22,19 @@ let myPhoenixScript = '' if [ "$1" = "sync" ]; then if [ "$2" != "user" ]; then - sudo nixos-rebuild switch -I nixos-config=''+myNixConfigurationFilePath+''; + pushd ''+myDotfilesDir+''; + sudo nixos-rebuild switch --flake .#; + popd; fi if [ "2" != "system" ]; then - home-manager switch -f ''+myHomeManagerFilePath+''; + pushd ''+myDotfilesDir+''; + home-manager switch --flake .#''+myName+''; + popd; fi elif [ "$1" = "update" ]; then - nix-channel --update; + pushd ''+myDotfilesDir+''; + nix flake update; + popd; fi ''; @@ -277,6 +285,7 @@ in # Fonts nerdfonts + powerline inconsolata inconsolata-nerdfont iosevka