decoupled home-manager
This commit is contained in:
1 parent
766ead72fb
commit
ff4eb12d01
2 files changed
+54
No files matched your search
@@ -0,0 +1,53 @@
|
|||||||
|
{ hostName, homeMangerVersion, user }:
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users.root = {
|
||||||
|
home.stateVersion = homeMangerVersion;
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "root";
|
||||||
|
userEmail = "root@${hostName}";
|
||||||
|
};
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
};
|
||||||
|
programs.zsh.oh-my-zsh.enable = true;
|
||||||
|
};
|
||||||
|
home-manager.users.${user.name} = {
|
||||||
|
home = {
|
||||||
|
stateVersion = homeMangerVersion;
|
||||||
|
shellAliases = {
|
||||||
|
cat = "bat";
|
||||||
|
};
|
||||||
|
packages = [
|
||||||
|
(pkgs.nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||||
|
];
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
bat.enable = true;
|
||||||
|
direnv.enable = true;
|
||||||
|
lsd = {
|
||||||
|
enable = true;
|
||||||
|
enableAliases = true;
|
||||||
|
};
|
||||||
|
git = {
|
||||||
|
enable = true;
|
||||||
|
userName = user.fullName;
|
||||||
|
userEmail = user.email;
|
||||||
|
};
|
||||||
|
zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
};
|
||||||
|
zsh.oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"sudo"
|
||||||
|
];
|
||||||
|
theme = "robbyrussell";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user