home manager settings

This commit is contained in:
2026-03-03 11:57:16 +01:00
parent acbb7ed945
commit 78b37aa0b8
4 changed files with 27 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{ inputs, ... }: { { inputs, config, ... }: {
flake.nixosModules.base = { flake.nixosModules.base = {
imports = with inputs.self.nixosModules; [ imports = with inputs.self.nixosModules; [
boot boot
@@ -14,4 +14,11 @@
zsh zsh
]; ];
}; };
flake.homeManagerModules.base = { ... }: {
imports = with config.flake.homeManagerModules; [
git
zsh
];
};
} }

13
modules/base/git/git.nix Normal file
View File

@@ -0,0 +1,13 @@
{ inputs, ... }: {
flake.homeManagerModules.git = { user, fullname, ... }: {
programs.git = {
enable = true;
userName = fullname;
userEmail = "${user}@chrayed.de";
extraConfig = {
init.defaultBranch = "main";
core.editor = "nano";
};
};
};
}

View File

View File

@@ -9,4 +9,8 @@
programs.zsh.ohMyZsh.theme = "agnoster"; programs.zsh.ohMyZsh.theme = "agnoster";
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
}; };
flake.homeManagerModules.zsh = { ... }: {
home.file.".zshrc".source = ./dotfiles/zsh-config;
};
} }