- Move environment variable exports from sessionVariables to bashrc - Add more robust sourcing of .profile and .bashrc.local - Improve SSH_AUTH_SOCK override logic for 1Password - Remove redundant path and pyenv logic from profileExtra - Set git core.editor to "zed" instead of "nvim" - Add DOTFILES_PATH to global session variables
56 lines
962 B
Nix
56 lines
962 B
Nix
{
|
|
config,
|
|
lib,
|
|
isServer ? false,
|
|
opnix,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
isServer = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
opnix.homeManagerModules.default
|
|
./config/default.nix
|
|
./packages/common/default.nix
|
|
]
|
|
++ (
|
|
if isServer then
|
|
[
|
|
./packages/server/default.nix
|
|
./server/default.nix
|
|
]
|
|
else
|
|
[
|
|
./packages/workstation/default.nix
|
|
./workstation/default.nix
|
|
]
|
|
);
|
|
|
|
config = {
|
|
isServer = isServer;
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
nixpkgs.config = {
|
|
allowUnfree = true;
|
|
allowUnfreePredicate = pkg: true;
|
|
};
|
|
|
|
home = {
|
|
username = "menno";
|
|
homeDirectory = "/home/menno";
|
|
stateVersion = "25.05";
|
|
sessionVariables = {
|
|
PATH = "${config.home.homeDirectory}/go/bin:$PATH";
|
|
DOTFILES_PATH = "${config.home.homeDirectory}/.dotfiles";
|
|
};
|
|
};
|
|
};
|
|
}
|