Add unified nix configuration

This commit is contained in:
Martin Pander
2026-02-07 13:54:58 +01:00
parent 0f2baf4651
commit a81bae3a85
54 changed files with 260 additions and 3401 deletions

View File

@@ -0,0 +1,28 @@
{ config, pkgs, ... }:
{
imports = [
../../../modules/home/common.nix
../../../modules/home/llm.nix
];
home.username = "pan";
home.homeDirectory = "/home/pan";
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

@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../modules/nixos/common.nix
];
wsl.enable = true;
wsl.defaultUser = "pan";
wsl.interop.register = true;
networking.hostName = "nix";
users.users.pan = {
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" ];
uid = 1000;
shell = pkgs.zsh;
};
system.stateVersion = "25.05";
}

View File

@@ -0,0 +1,31 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../modules/home/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.stateVersion = "25.05";
}