Make config more configurable

This commit is contained in:
Martin Pander
2026-02-07 14:23:51 +01:00
parent a81bae3a85
commit 84ad11d543
10 changed files with 180 additions and 129 deletions

25
nix/hosts/work/common.nix Normal file
View File

@@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
imports = [
../../modules/home/common.nix
];
programs.git.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
programs.jujutsu.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
dot.llm = {
enable = true;
claude-code.enable = true;
opencode.enable = true;
};
dot.tmux.workMode = true;
}

View File

@@ -2,25 +2,18 @@
{
imports = [
../../../modules/home/common.nix
../../../modules/home/llm.nix
../common.nix
];
home.username = "pan";
home.homeDirectory = "/home/pan";
home.packages = with pkgs; [
nix-ld
];
home.stateVersion = "23.11";
programs.git.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
programs.jujutsu.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
programs.zsh.profileExtra = ''
source $HOME/.profile
'';

View File

@@ -2,30 +2,13 @@
{
imports = [
../../../modules/home/common.nix
../common.nix
];
# User details
home.username = "pan";
home.homeDirectory = "/home/pan";
# Git and Jujutsu user configuration
programs.git.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
programs.jujutsu.settings.user = {
name = "Martin Pander";
email = "martin.pander@knowtion.de";
};
home.packages = with pkgs; [
nix-ld
];
# This value determines the Home Manager release which the configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
# Home Manager release version
home.stateVersion = "25.05";
}