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

View file

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