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

View File

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

View File

@ -2,6 +2,7 @@
config, config,
lib, lib,
myData, myData,
#home-manager,
... ...
}: { }: {
options.mj.base.users = with lib.types; { options.mj.base.users = with lib.types; {
@ -27,7 +28,9 @@
users = { users = {
mutableUsers = false; mutableUsers = false;
users = with config.mj.base.users; { users = let
passwd = config.mj.base.users.passwd;
in {
motiejus = motiejus =
{ {
isNormalUser = true; isNormalUser = true;
@ -41,5 +44,27 @@
lib.filterAttrs (n: v: v != null) passwd.root; 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";
};
};
};
}; };
} }