mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
First pass at Home Manager on Ubuntu
This commit is contained in:
parent
87925581cc
commit
f5c1fa2ce0
9 changed files with 84 additions and 20 deletions
24
modules/hosts/home-manager-only/default.nix
Normal file
24
modules/hosts/home-manager-only/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue