mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 23:59:07 +02:00
home manager settings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }: {
|
||||
{ inputs, config, ... }: {
|
||||
flake.nixosModules.base = {
|
||||
imports = with inputs.self.nixosModules; [
|
||||
boot
|
||||
@@ -14,4 +14,11 @@
|
||||
zsh
|
||||
];
|
||||
};
|
||||
|
||||
flake.homeManagerModules.base = { ... }: {
|
||||
imports = with config.flake.homeManagerModules; [
|
||||
git
|
||||
zsh
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
13
modules/base/git/git.nix
Normal file
13
modules/base/git/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
0
modules/base/zsh/dotfiles/zsh-config
Normal file
0
modules/base/zsh/dotfiles/zsh-config
Normal file
@@ -1,5 +1,5 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.zsh = {pkgs, ... }:{
|
||||
flake.nixosModules.zsh = { pkgs, ... }: {
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh.enableCompletion = true;
|
||||
programs.zsh.syntaxHighlighting.enable = true;
|
||||
@@ -7,6 +7,10 @@
|
||||
programs.zsh.autosuggestions.async = true;
|
||||
programs.zsh.ohMyZsh.enable = true;
|
||||
programs.zsh.ohMyZsh.theme = "agnoster";
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
};
|
||||
|
||||
flake.homeManagerModules.zsh = { ... }: {
|
||||
home.file.".zshrc".source = ./dotfiles/zsh-config;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user