mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 01:54:02 +05:30
Testing updated install steps and automated install script
This commit is contained in:
parent
7a24e7507a
commit
b2e631f415
3 changed files with 66 additions and 33 deletions
13
install.sh
Normal file
13
install.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Automated script to install my dotfiles
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue