home-manager/motiejus: add very basic test configs
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
config,
|
||||
lib,
|
||||
myData,
|
||||
#home-manager,
|
||||
...
|
||||
}: {
|
||||
options.mj.base.users = with lib.types; {
|
||||
@@ -27,7 +28,9 @@
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
||||
users = with config.mj.base.users; {
|
||||
users = let
|
||||
passwd = config.mj.base.users.passwd;
|
||||
in {
|
||||
motiejus =
|
||||
{
|
||||
isNormalUser = true;
|
||||
@@ -41,5 +44,27 @@
|
||||
lib.filterAttrs (n: v: v != null) passwd.root;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.motiejus = {pkgs, ...}: {
|
||||
home.stateVersion = "23.05";
|
||||
programs.direnv.enable = true;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "motiejus@jakstys.lt";
|
||||
aliases.yolo = "commit --amend --no-edit -a";
|
||||
extraConfig = {
|
||||
rerere.enabled = true;
|
||||
pull.ff = "only";
|
||||
merge.conflictstyle = "diff3";
|
||||
};
|
||||
};
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"l" = "echo -n ł | xclip -selection clipboard";
|
||||
"gp" = "${pkgs.git} remote | ${pkgs.parallel} --verbose git push";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user