Add offline home manager switch option

This commit is contained in:
Yan Lin 2025-08-01 08:27:10 +02:00
parent e480c1abcc
commit f0b7ad9213
2 changed files with 3 additions and 2 deletions

View file

@ -63,7 +63,7 @@
}; };
matmeet = { matmeet = {
template = "baisc"; template = "basic";
name = "MaterialMeet"; name = "MaterialMeet";
codePath = "/Users/yanlin/Documents/Projects/Material Project Group Meeting"; codePath = "/Users/yanlin/Documents/Projects/Material Project Group Meeting";
description = "Material Meeting Slides"; description = "Material Meeting Slides";

View file

@ -42,6 +42,7 @@ in
# Nix helpers # Nix helpers
hm = "home-manager"; hm = "home-manager";
hms = "home-manager switch --flake ~/.config/nix#yanlin"; hms = "home-manager switch --flake ~/.config/nix#yanlin";
hms-offline = "home-manager switch --flake ~/.config/nix#yanlin --option substitute false";
# Project shortcuts # Project shortcuts
proj = "${projectLauncher}"; proj = "${projectLauncher}";
@ -146,4 +147,4 @@ in
# Generate projects.json for shell scripts # Generate projects.json for shell scripts
home.file.".config/nix/config/projects.json".text = builtins.toJSON projectsConfig; home.file.".config/nix/config/projects.json".text = builtins.toJSON projectsConfig;
} }