Compare commits

...

3 Commits

Author SHA1 Message Date
2e69205abc
refactor(hosts): remove /etc/nixos from persistence
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 37s
2024-11-11 23:14:19 -06:00
88d64a5f73
refactor(hosts/luna): update system.stateVersion 24.05 -> 24.11
This required a manual migration of postgresql from version 15 to 16
2024-11-11 23:13:24 -06:00
f7bc9f393b
refactor(nvim): improve snacks notifier appearance 2024-11-11 20:12:21 -06:00
5 changed files with 16 additions and 9 deletions

View File

@ -6,5 +6,5 @@
./modules ./modules
] ".nix" ] ".nix"
); );
system.stateVersion = "24.05"; system.stateVersion = "24.11";
} }

View File

@ -1,14 +1,17 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
pg_dataDir_base = "/var/lib/postgresql";
in
{ {
services.postgresqlBackup = { services.postgresqlBackup = {
enable = true;
location = "/var/backup/postgresql"; location = "/var/backup/postgresql";
backupAll = true; backupAll = true;
}; };
services.postgresql = { services.postgresql = {
enable = true; enable = true;
# Explicitly setting the data dir so upgrades (changing version from 15 -> 16) don't end up dataDir = "${pg_dataDir_base}/${config.services.postgresql.package.psqlSchema}";
# getting lost on system reboots
dataDir = "/var/lib/postgresql";
settings = { settings = {
log_connections = true; log_connections = true;
log_disconnections = true; log_disconnections = true;
@ -27,7 +30,7 @@
environment.persistence.save.directories = [ environment.persistence.save.directories = [
{ {
directory = config.services.postgresql.dataDir; directory = "${pg_dataDir_base}";
user = "postgres"; user = "postgres";
group = "postgres"; group = "postgres";
} }

View File

@ -14,7 +14,6 @@ in
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/var/lib" "/var/lib"
"/etc/nixos"
]; ];
}; };
services = { services = {

View File

@ -26,7 +26,6 @@ in
hideMounts = true; hideMounts = true;
directories = [ directories = [
"/var/lib" "/var/lib"
"/etc/nixos"
]; ];
}; };

View File

@ -39,7 +39,9 @@ return {
{ {
"<leader>nv", "<leader>nv",
function() function()
require("snacks").notifier.show_history() require("snacks").notifier.show_history({
sort = { "added" },
})
end, end,
desc = "Notifications: Search", desc = "Notifications: Search",
}, },
@ -57,6 +59,10 @@ return {
words = { enabled = true }, words = { enabled = true },
statuscolumn = { enabled = false }, statuscolumn = { enabled = false },
}) })
snacks.config.styles["notification.history"] = {
title = { { "Notification History", "@markup.heading.4" } },
border = { { " ", "INVALIDHIGHLIGHTHERE" } },
}
_G.bt = snacks.debug.backtrace _G.bt = snacks.debug.backtrace
_G.dd = snacks.debug.inspect _G.dd = snacks.debug.inspect
vim.print = snacks.debug.inspect vim.print = snacks.debug.inspect