Add isServer option and conditionally enable Git signing
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

This commit is contained in:
2025-09-23 14:07:10 +00:00
parent cfb80bd819
commit 29a439d095
2 changed files with 26 additions and 14 deletions

View File

@@ -1,16 +1,17 @@
{
config,
lib,
isServer ? false,
opnix,
...
}:
{
programs.home-manager.enable = true;
nixpkgs.config = {
allowUnfree = true;
allowUnfreePredicate = pkg: true;
options = {
isServer = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
imports = [
@@ -31,12 +32,23 @@
]
);
home = {
username = "menno";
homeDirectory = "/home/menno";
stateVersion = "25.05";
sessionVariables = {
PATH = "${config.home.homeDirectory}/go/bin:$PATH";
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";
};
};
};
}