🛌 Nih-Helper and renamed rebuild to switch

This commit is contained in:
Martin Berg Alstad 2025-01-05 18:24:57 +01:00
parent 36bb075dd2
commit f0ac3a7705
Signed by: martials
GPG Key ID: A3824877B269F2E2
4 changed files with 14 additions and 5 deletions

View File

@ -17,6 +17,7 @@
./hyprland
./audio.nix
./networking.nix
./nixHelper.nix
./development.nix
./security.nix
./locale.nix
@ -43,7 +44,6 @@
nixpkgs.config.allowUnfree = true;
environment.sessionVariables = {
FLAKE = "/etc/nixos";
# Tells Electron apps to use Wayland
NIXOS_OZONE_WL = "1";
NIXOS_CONFIG_PATH = "/etc/nixos";

9
nixHelper.nix Normal file
View File

@ -0,0 +1,9 @@
# Nix-Helper: swgithub.com/viperML/nh
{ ... }:
{
programs.nh = {
enable = true;
flake = ./.;
};
}

View File

@ -2,5 +2,5 @@
# Rebuild and switch the environment if successful
git add .
sudo ./fmt
sudo nixos-rebuild switch --flake .#
./fmt
nh os switch .

4
test
View File

@ -2,5 +2,5 @@
# Rebuild and switch the environment if successful
git add .
sudo ./fmt
sudo nixos-rebuild test --flake .#
./fmt
nh os test .