Atuin stuff?

This commit is contained in:
Daniel Flanagan 2024-02-21 22:59:49 -06:00
parent 0711b7cbb1
commit 44b0b89f64
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
3 changed files with 37 additions and 13 deletions

View file

@ -85,6 +85,10 @@
enableNushellIntegration = config.programs.nushell.enable;
settings = {
auto_sync = true;
sync_frequency = "1m";
sync_address = "https://atuin.h.lyte.dev";
keymap_mode = "vim-insert";
};
};

View file

@ -29,6 +29,15 @@ in {
# inputs.nix-minecraft.nixosModules.minecraft-servers
];
home-manager.users.daniel = {
# imports = with outputs.homeManagerModules; [
# ];
home = {
stateVersion = "24.05";
};
};
nixpkgs.overlays = [
# inputs.nix-minecraft.overlay
];
@ -270,6 +279,8 @@ in {
linuxquota
htop
bottom
curl
xh
];
# TODO: make the client declarative? right now I think it's manually git
@ -462,7 +473,12 @@ in {
services.postgresql = {
enable = true;
ensureDatabases = ["daniel" "plausible" "nextcloud"];
ensureDatabases = [
"daniel"
"plausible"
"nextcloud"
# "atuin"
];
ensureUsers = [
{
name = "daniel";
@ -476,10 +492,10 @@ in {
name = "nextcloud";
ensureDBOwnership = true;
}
{
name = "atuin";
ensureDBOwnership = true;
}
# {
# name = "atuin";
# ensureDBOwnership = true;
# }
];
dataDir = "/storage/postgres";
enableTCPIP = true;
@ -493,10 +509,11 @@ in {
local sameuser all peer map=superuser_map
local plausible plausible peer map=superuser_map
local nextcloud nextcloud peer map=superuser_map
local atuin atuin peer map=superuser_map
local atuin atuin peer map=superuser_map
# lan ipv4
host all all 10.0.0.0/24 trust
host all all 192.168.0.0/16 trust
host all all 10.0.0.0/24 trust
# tailnet ipv4
host all all 100.64.0.0/10 trust
@ -504,11 +521,12 @@ in {
identMap = ''
# ArbitraryMapName systemUser DBUser
superuser_map root postgres
superuser_map postgres postgres
superuser_map daniel postgres
# Let other names login as themselves
superuser_map /^(.*)$ \1
superuser_map root postgres
superuser_map postgres postgres
superuser_map daniel postgres
# Let other names login as themselves
superuser_map /^(.*)$ \1
'';
};
@ -727,7 +745,8 @@ in {
services.atuin = {
enable = true;
database = {
createLocally = false;
createLocally = true;
# uri = "postgresql://atuin@localhost:5432/atuin";
};
};

View file

@ -38,6 +38,7 @@ in {
radeontop
sops
obs-studio
xh
];
};