upgrade to nixos 23.11 & manual libtensorflow

This commit is contained in:
2023-11-30 16:32:04 -06:00
parent 47db75aa0d
commit 9717a2422a
2 changed files with 45 additions and 20 deletions

View File

@@ -32,7 +32,7 @@ configurations.
#+begin_src nix
{ config, pkgs, lib, ... }:
let
version = "23.05";
version = "23.11";
myEmail = "CaptainJawZ@outlook.com";
myName = "Danilo Reyes";
cpuArchitecture = "skylake";
@@ -277,7 +277,6 @@ nixpkgs = {
allowUnfree = true;
permittedInsecurePackages = [
"openssl-1.1.1w"
"nodejs-14.21.3"
];
};
# localSystem = {
@@ -383,7 +382,7 @@ fzf # fuzzy finder! super cool and useful
gdu # disk-space utility, somewhat useful
du-dust # rusty du
trash-cli # oop! didn't meant to delete that
unstable.eza # like ls but with colors
eza # like ls but with colors
rmlint # probably my favourite app, amazing dupe finder that integrates well with BTRFS
smartmontools # check hard drie health
#+end_src
@@ -707,6 +706,34 @@ environment = {
dlib
fd
ripgrep
# Upgrades postgres
(let
# XXX specify the postgresql package you'd like to upgrade to.
# Do not forget to list the extensions you need.
newPostgres = pkgs.postgresql_16.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 \
"$@"
'')
];
variables = rec {
# PATH