mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Retesting install.sh as script bin
This commit is contained in:
parent
87ac573331
commit
e757a950bf
|
@ -127,9 +127,7 @@
|
|||
{
|
||||
default = self.packages.${system}.install;
|
||||
|
||||
install = pkgs.writeScriptBin "install" ''
|
||||
echo "echo works"
|
||||
'';
|
||||
install = pkgs.writeScriptBin "install" ./install.sh;
|
||||
});
|
||||
|
||||
apps = forAllSystems (system: {
|
||||
|
|
20
install.sh
20
install.sh
|
@ -2,14 +2,12 @@
|
|||
|
||||
# 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
|
||||
# if [ -z "$EDITOR" ]; then
|
||||
# EDITOR=nano;
|
||||
# fi
|
||||
# $EDITOR ~/.dotfiles/flake.nix;
|
||||
# sudo nixos-rebuild switch --flake ~/.dotfiles#system;
|
||||
# nix run home-manager/master -- switch --flake ~/.dotfiles#user;
|
||||
# sudo ~/.dotfiles/harden.sh;
|
||||
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
|
||||
if [ -z "$EDITOR" ]; then
|
||||
EDITOR=nano;
|
||||
fi
|
||||
$EDITOR ~/.dotfiles/flake.nix;
|
||||
sudo nixos-rebuild switch --flake ~/.dotfiles#system;
|
||||
nix run home-manager/master -- switch --flake ~/.dotfiles#user;
|
||||
sudo ~/.dotfiles/harden.sh;
|
||||
|
|
Loading…
Reference in a new issue