Merge pull request #533 from genebean/multiplatform

Make home manager config work cross-platform
This commit is contained in:
Gene Liverman 2025-08-09 22:58:50 -04:00 committed by GitHub
commit 4f9e5797d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, system, username, ... }: {
home.stateVersion = "25.05";
home.packages = with pkgs; [
age
@ -9,8 +9,8 @@
# home-manager switch --flake ~/repos/dots
programs.zsh.shellAliases = {
nixdiff = "cd ~/repos/dots && home-manager build --flake . && nvd diff /run/current-system result";
nixup = "home-manager switch --flake ~/repos/dots";
nixdiff = "cd ~/repos/dots && home-manager build --flake .#${username}-${system} && nvd diff /run/current-system result";
nixup = "home-manager switch --flake ~/repos/dots#${username}-${system}";
};
sops = {