Files
nix/users/blake/home.nix
2025-10-17 16:03:44 -05:00

55 lines
1.0 KiB
Nix

{
config,
lib,
pkgs,
inputs,
...
}: let
# general config
home_linux = {
username = "blake";
homeDirectory = "/home/blake";
};
home_darwin = {
username = "bhelderman";
homeDirectory = "/Users/bhelderman";
};
in
{
imports = [
inputs.sops-nix.homeManagerModules.sops
./dots/neovim
./dots/lf
./dots/zsh
./dots/ssh
./dots/gpg
./dots/git
./dots/xdg
];
# set home manager config based on system type
home = (if pkgs.system == "x86_64-darwin" then home_darwin else home_linux) // {
# cross party general packages here : )
stateVersion = "25.05";
packages = with pkgs; [
ripgrep
btop
p7zip
imagemagick
sops
usbutils
];
};
# needed for macos, linux don't mind
programs.home-manager.enable = true;
# set up seperate key file just for me
sops = {
defaultSopsFile = ./secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/blake/.config/sops/age/keys.txt";
};
}