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