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;
@ -496,6 +512,7 @@ in {
local atuin atuin peer map=superuser_map local atuin atuin peer map=superuser_map
# lan ipv4 # lan ipv4
host all all 192.168.0.0/16 trust
host all all 10.0.0.0/24 trust host all all 10.0.0.0/24 trust
# tailnet ipv4 # tailnet ipv4
@ -507,6 +524,7 @@ in {
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 # Let other names login as themselves
superuser_map /^(.*)$ \1 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
]; ];
}; };