home-manager/motiejus: add very basic test configs

This commit is contained in:
Motiejus Jakštys 2023-08-18 16:26:00 +03:00
parent 54447818fa
commit 47453cdfe1
3 changed files with 29 additions and 2 deletions

View File

@ -54,6 +54,7 @@
./modules
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
@ -80,6 +81,7 @@
./modules
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
@ -103,6 +105,7 @@
./modules
agenix.nixosModules.default
home-manager.nixosModules.home-manager
{
age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;

View File

@ -83,7 +83,6 @@
parted
sqlite
procps
direnv
ripgrep
vimv-rs
sysstat

View File

@ -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";
};
};
};
};
}