Compare commits
3 Commits
fe757ad6b1
...
2e69205abc
Author | SHA1 | Date | |
---|---|---|---|
2e69205abc | |||
88d64a5f73 | |||
f7bc9f393b |
@ -6,5 +6,5 @@
|
||||
./modules
|
||||
] ".nix"
|
||||
);
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
system.stateVersion = "24.11";
|
||||
}
|
@ -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";
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ in
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib"
|
||||
"/etc/nixos"
|
||||
];
|
||||
};
|
||||
services = {
|
||||
|
@ -26,7 +26,6 @@ in
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib"
|
||||
"/etc/nixos"
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user