🛌 Nih-Helper and renamed rebuild to switch
This commit is contained in:
parent
36bb075dd2
commit
f0ac3a7705
@ -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
9
nixHelper.nix
Normal file
@ -0,0 +1,9 @@
|
||||
# Nix-Helper: swgithub.com/viperML/nh
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = ./.;
|
||||
};
|
||||
}
|
@ -2,5 +2,5 @@
|
||||
|
||||
# Rebuild and switch the environment if successful
|
||||
git add .
|
||||
sudo ./fmt
|
||||
sudo nixos-rebuild switch --flake .#
|
||||
./fmt
|
||||
nh os switch .
|
Loading…
x
Reference in New Issue
Block a user