Files
nix/users/blake/home.nix

61 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
inputs,
system,
...
}: let
#platform = if pkgs.stdenv.hostPlatform.system == "x86_64-darwin" then "darwin" else "nixos";
platform = if builtins.pathExists "/System/Library/CoreServices" then "darwin" else "nixos";
# general config
home_linux = {
username = "blake";
homeDirectory = "/home/blake";
};
home_darwin = {
username = "bhelderman";
homeDirectory = "/Users/bhelderman";
};
in
{
imports = [
inputs.sops-nix.homeManagerModules.sops
./os/${platform}.nix
#./os/nixos.nix
./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";
};
}