Retesting install.sh as script bin

This commit is contained in:
Emmet 2024-02-25 13:04:02 -06:00
parent 87ac573331
commit e757a950bf
2 changed files with 10 additions and 14 deletions

View file

@ -127,9 +127,7 @@
{ {
default = self.packages.${system}.install; default = self.packages.${system}.install;
install = pkgs.writeScriptBin "install" '' install = pkgs.writeScriptBin "install" ./install.sh;
echo "echo works"
'';
}); });
apps = forAllSystems (system: { apps = forAllSystems (system: {

View file

@ -2,14 +2,12 @@
# Automated script to install my dotfiles # Automated script to install my dotfiles
echo "echo works" nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles"
sudo nixos-generate-config --show-hardware-config > ~/.dotfiles/system/hardware-configuration.nix
# nix-shell -p git --command "git clone https://gitlab.com/librephoenix/nixos-config ~/.dotfiles" if [ -z "$EDITOR" ]; then
# sudo nixos-generate-config --show-hardware-config > ~/.dotfiles/system/hardware-configuration.nix EDITOR=nano;
# if [ -z "$EDITOR" ]; then fi
# EDITOR=nano; $EDITOR ~/.dotfiles/flake.nix;
# fi sudo nixos-rebuild switch --flake ~/.dotfiles#system;
# $EDITOR ~/.dotfiles/flake.nix; nix run home-manager/master -- switch --flake ~/.dotfiles#user;
# sudo nixos-rebuild switch --flake ~/.dotfiles#system; sudo ~/.dotfiles/harden.sh;
# nix run home-manager/master -- switch --flake ~/.dotfiles#user;
# sudo ~/.dotfiles/harden.sh;