Compare commits
No commits in common. "6261d8bf97b934d335cb7fd4a3c03e82c9b5976c" and "c03c0a03488bb1d25275452929d3c3138992b567" have entirely different histories.
6261d8bf97
...
c03c0a0348
3 changed files with 1 additions and 47 deletions
|
|
@ -7,8 +7,6 @@ let
|
||||||
fullName = "Alexander Kobjolke";
|
fullName = "Alexander Kobjolke";
|
||||||
mail = "me@failco.de";
|
mail = "me@failco.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# shell config
|
# shell config
|
||||||
|
|
@ -128,7 +126,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# better ls with icons and stuff, maybe also try lsd
|
# better ls with icons and stuff, maybe also try lsd
|
||||||
${myEza} = {
|
eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
icons = true;
|
icons = true;
|
||||||
enableAliases = true;
|
enableAliases = true;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ let
|
||||||
in {
|
in {
|
||||||
imports = [ # Include the results of the hardware scan.
|
imports = [ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/upgrade-pg-cluster.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.package = pkgs.nixUnstable;
|
nix.package = pkgs.nixUnstable;
|
||||||
|
|
@ -99,11 +98,6 @@ in {
|
||||||
publicKey = "NG9y+0RMDTjiG65yC4Z0ymJ0G5fe1mOhl4GyC3xAh1k=";
|
publicKey = "NG9y+0RMDTjiG65yC4Z0ymJ0G5fe1mOhl4GyC3xAh1k=";
|
||||||
allowedIPs = [ "10.0.0.3/32" ];
|
allowedIPs = [ "10.0.0.3/32" ];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
# homematic
|
|
||||||
publicKey = "slqWgVksOCav0bASxupaFGqfr6vajxDRNIlZYocONQ4=";
|
|
||||||
allowedIPs = [ "10.0.0.4/32" ];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -209,11 +203,6 @@ in {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
add_header X-Frame-Options 'SAMEORIGIN';
|
add_header X-Frame-Options 'SAMEORIGIN';
|
||||||
'';
|
'';
|
||||||
|
|
||||||
locations."/photo-groove" = {
|
|
||||||
proxyPass = "http://127.0.0.1:8000/";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
"www.jakalx.net" = {
|
"www.jakalx.net" = {
|
||||||
|
|
@ -389,7 +378,6 @@ in {
|
||||||
virusScanning = true;
|
virusScanning = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = { package = pkgs.postgresql_15; };
|
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostName = "mail.failco.de";
|
hostName = "mail.failco.de";
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
|
||||||
(let
|
|
||||||
# XXX specify the postgresql package you'd like to upgrade to.
|
|
||||||
# Do not forget to list the extensions you need.
|
|
||||||
newPostgres = pkgs.postgresql_15.withPackages (pp: [
|
|
||||||
# pp.plv8
|
|
||||||
]);
|
|
||||||
in pkgs.writeScriptBin "upgrade-pg-cluster" ''
|
|
||||||
set -eux
|
|
||||||
# XXX it's perhaps advisable to stop all services that depend on postgresql
|
|
||||||
systemctl stop postgresql
|
|
||||||
|
|
||||||
export NEWDATA="/var/lib/postgresql/${newPostgres.psqlSchema}"
|
|
||||||
|
|
||||||
export NEWBIN="${newPostgres}/bin"
|
|
||||||
|
|
||||||
export OLDDATA="${config.services.postgresql.dataDir}"
|
|
||||||
export OLDBIN="${config.services.postgresql.package}/bin"
|
|
||||||
|
|
||||||
install -d -m 0700 -o postgres -g postgres "$NEWDATA"
|
|
||||||
cd "$NEWDATA"
|
|
||||||
sudo -u postgres $NEWBIN/initdb -D "$NEWDATA"
|
|
||||||
|
|
||||||
sudo -u postgres $NEWBIN/pg_upgrade \
|
|
||||||
--old-datadir "$OLDDATA" --new-datadir "$NEWDATA" \
|
|
||||||
--old-bindir $OLDBIN --new-bindir $NEWBIN \
|
|
||||||
"$@"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue