[WIP] Refactor nix config

This commit is contained in:
Martin
2026-02-06 20:51:39 +01:00
parent f54655f3ae
commit 8ca8d55826
25 changed files with 2011 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
{ config, pkgs, lib, ... }:
{
imports = [
./modules/home/default.nix
./modules/tmux.nix
./modules/git.nix
./modules/dev.nix
./modules/nvim.nix
./modules/task.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
];
# NIX_LD settings for running non-Nix binaries
# home.sessionVariables = {
# NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
# stdenv.cc.cc
# zlib
# ];
# NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
# };
# 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";
}