Compare commits
No commits in common. "2e69205abcb9c394d589904fca5b2c0238c3d795" and "fe757ad6b11f0f35f2af87dfb029ec3ff518883a" have entirely different histories.
2e69205abc
...
fe757ad6b1
@ -6,5 +6,5 @@
|
||||
./modules
|
||||
] ".nix"
|
||||
);
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
@ -1,17 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
pg_dataDir_base = "/var/lib/postgresql";
|
||||
in
|
||||
{
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
location = "/var/backup/postgresql";
|
||||
backupAll = true;
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
dataDir = "${pg_dataDir_base}/${config.services.postgresql.package.psqlSchema}";
|
||||
# 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";
|
||||
settings = {
|
||||
log_connections = true;
|
||||
log_disconnections = true;
|
||||
@ -30,7 +27,7 @@ in
|
||||
|
||||
environment.persistence.save.directories = [
|
||||
{
|
||||
directory = "${pg_dataDir_base}";
|
||||
directory = config.services.postgresql.dataDir;
|
||||
user = "postgres";
|
||||
group = "postgres";
|
||||
}
|
||||
|
@ -14,6 +14,7 @@ in
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib"
|
||||
"/etc/nixos"
|
||||
];
|
||||
};
|
||||
services = {
|
||||
|
@ -26,6 +26,7 @@ in
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib"
|
||||
"/etc/nixos"
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -39,9 +39,7 @@ return {
|
||||
{
|
||||
"<leader>nv",
|
||||
function()
|
||||
require("snacks").notifier.show_history({
|
||||
sort = { "added" },
|
||||
})
|
||||
require("snacks").notifier.show_history()
|
||||
end,
|
||||
desc = "Notifications: Search",
|
||||
},
|
||||
@ -59,10 +57,6 @@ 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