mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Adjusted update wrapper (phoenix) for flake
This commit is contained in:
parent
647295da19
commit
5123054e5d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue