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
] ".nix"
);
system.stateVersion = "24.05";
}
system.stateVersion = "24.11";
}

View File

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

View File

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

View File

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

View File

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