added switch and test aliases

modified:   common/home.nix
This commit is contained in:
2025-07-16 19:18:54 +10:00
parent 9868ff9739
commit d108d50793

View File

@@ -1,12 +1,31 @@
{ config, pkgs, lib, ... }:
{
let
mySwitchCmd = ''
sudo nixos-rebuild switch \
--no-write-lock-file \
--refresh \
--flake git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git#$(hostname)
'';
myTestCmd = ''
sudo nixos-rebuild switch \
--no-write-lock-file \
--refresh \
--flake git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git#$(hostname)
'';
in {
home.username = "nixos"; # your actual username
home.homeDirectory = "/home/nixos";
home.stateVersion = "25.05"; # match your NixOS stateVersion
programs.home-manager.enable = true; # mandatory to activate HM
home.shellAliases = {
Switch-nix = mySwitchCmd;
Test-nix = myTestCmd;
};
# Optional: packages
home.packages = with pkgs; [
git