First pass at Home Manager on Ubuntu

This commit is contained in:
Gene Liverman 2025-08-09 09:42:48 -04:00
parent 87925581cc
commit f5c1fa2ce0
No known key found for this signature in database
9 changed files with 84 additions and 20 deletions

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }: {
home.stateVersion = "25.05";
home.packages = with pkgs; [
age
home-manager
sops
ssh-to-age
];
# 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";
};
sops = {
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
defaultSopsFile = ./secrets.yaml;
secrets = {
local_git_config.path = "${config.home.homeDirectory}/.gitconfig-local";
local_private_env.path = "${config.home.homeDirectory}/.private-env";
};
};
}