1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-07-15 02:30:13 +00:00
Files
alacritty.configlink
bin
cargo
fd
fish.configlink
git
hammerspoon.symlink
homebrew
mail
mpv.configlink
newsboat.configlink
nixos
Makefile
awesomerc.lua
configuration.nix
default.nix
home.nix
qtile.py
spectrwm.conf
nvim.configlink
python
rg
scripts
starship
templates
tmux
windows
.envrc
.gitignore
.stylua.toml
Makefile
digrc.symlink
direnvrc.symlink
shell.nix
dotfiles/nixos/Makefile
2022-01-22 17:19:32 -05:00

28 lines
860 B
Makefile

# Show these options
default:
@echo "sudo make bootstrap -- Install from scratch"
@echo "make channels -- Set intended software channels"
@echo "make system -- Update system config"
@echo "make home -- Update home config"
# Bootstrap from nothing
bootstrap:
nix-channel --add https://nixos.org/channels/nixos-unstable
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update
nixos-rebuild switch -I nixos-config=./configuration.nix
# Use intended software channels
channels:
doas nix-channel --add https://nixos.org/channels/nixos-unstable
doas nix-channel --add https://nixos.org/channels/nixpkgs-unstable
doas nix-channel --update
# Update the system
system:
doas nixos-rebuild switch -I nixos-config=./configuration.nix
# Update the user environment
home:
home-manager switch -f ./home.nix