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 = {
|
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
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.enable = true;
|
||||||
programs.zsh.enableCompletion = true;
|
programs.zsh.enableCompletion = true;
|
||||||
programs.zsh.syntaxHighlighting.enable = true;
|
programs.zsh.syntaxHighlighting.enable = true;
|
||||||
@@ -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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user