Files
dotfiles/home.nix
Menno van Leeuwen 29a439d095
Some checks failed
Ansible Lint Check / check-ansible (push) Successful in 4s
Nix Format Check / check-format (push) Successful in 1m14s
Python Lint Check / check-python (push) Failing after 6s
Add isServer option and conditionally enable Git signing
2025-09-23 14:07:10 +00:00

55 lines
896 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";
};
};
};
}