83 lines
2.8 KiB
Nix
83 lines
2.8 KiB
Nix
# Work profile Home Manager configuration
|
|
#
|
|
# This file contains settings specific to the work machine.
|
|
# It imports the shared default.nix and adds work-specific overrides.
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
# Import work-specific modules
|
|
imports = [
|
|
../modules/home/git.nix
|
|
../modules/home/git-files.nix
|
|
];
|
|
|
|
# ==========================================================================
|
|
# Git Configuration for Work Profile
|
|
# ==========================================================================
|
|
# On work machine, we use a default email but override per-project
|
|
# The main git config doesn't have a default includeIf for ~/Projects/
|
|
# Instead, we have separate includes for private and zeronorth directories
|
|
modules.git = {
|
|
enable = true;
|
|
# Default email for work (used when not in a specific project directory)
|
|
userEmail = "morten.olsen@zeronorth.com";
|
|
# Default signing key for work
|
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k";
|
|
|
|
# On work machine, we have separate includes for private and zeronorth
|
|
includes = [
|
|
{
|
|
condition = "gitdir:~/Projects/private/";
|
|
path = "~/Projects/private/.gitconfig";
|
|
}
|
|
{
|
|
condition = "gitdir:~/Projects/zeronorth/";
|
|
path = "~/Projects/zeronorth/.gitconfig";
|
|
}
|
|
];
|
|
};
|
|
|
|
# ==========================================================================
|
|
# Git Files Configuration for Work Profile
|
|
# ==========================================================================
|
|
modules.gitFiles = {
|
|
enable = true;
|
|
|
|
# Private projects config (~/Projects/private/.gitconfig)
|
|
# For personal projects on the work machine
|
|
private = {
|
|
enable = true;
|
|
email = "fbtijfdq@void.black";
|
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILAzuPy7D/54GxMq9Zhz0CUjaDnEQ6RkQ/yqVYl7U55k";
|
|
};
|
|
|
|
# Zeronorth projects config (~/Projects/zeronorth/.gitconfig)
|
|
# For work projects
|
|
zeronorth = {
|
|
enable = true;
|
|
email = "morten.olsen@zeronorth.com";
|
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKDbZITpz5QrVIxPn9gKVWMPK+3W3YZZGszFOQvO/h7M";
|
|
};
|
|
};
|
|
|
|
# ==========================================================================
|
|
# SSH Hosts for Work Profile
|
|
# ==========================================================================
|
|
modules.ssh = {
|
|
# Enable personal GitHub host (for personal projects on work machine)
|
|
enableGitHubPrivate = true;
|
|
# Enable work GitHub host
|
|
enableGitHubZeronorth = true;
|
|
# Enable Coder for remote development environments
|
|
enableCoder = true;
|
|
# Gitea is personal-only, not needed on work machine
|
|
enableGiteaPrivate = false;
|
|
};
|
|
|
|
# Work-only packages
|
|
# modules.packages.work = true;
|
|
}
|