7 lines
590 B
Bash
Executable file
7 lines
590 B
Bash
Executable file
#!/usr/bin/env bash
|
|
export NIX_CONFIG="experimental-features = nix-command flakes"
|
|
cd
|
|
cp /etc/nixos/hardware-configuration.nix ~/nixos-config/hosts/nixos-home/hardware-configuration.nix
|
|
cd ~/nixos-config
|
|
nix-shell -p git --run 'git add hosts/nixos-home/hardware-configuration.nix'
|
|
nix-shell -p git --run 'sudo nixos-rebuild switch --flake .#nixos-home --option substituters "https://cache.nixos.org https://hyprland.cachix.org" --option trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="'
|