From a4be83eb2810e152d03f1b217b71b497ec5b501b Mon Sep 17 00:00:00 2001 From: arnaucube Date: Mon, 16 Sep 2024 21:49:49 +0200 Subject: [PATCH] update nixos config backup --- backup-nixos-configs.sh | 9 +++++++++ nixos/common-configuration.nix | 21 +++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/backup-nixos-configs.sh b/backup-nixos-configs.sh index cce42b0..0bc9906 100755 --- a/backup-nixos-configs.sh +++ b/backup-nixos-configs.sh @@ -1,2 +1,11 @@ #!/usr/bin/env bash + +DEVICE=$1 + +if [ -z $DEVICE ] ; then + echo "missing 1st argument (DEVICE), ie. the name of the device where the backup is being done" + exit 1 +fi + cp /etc/nixos/* ./nixos/ +mv ./nixos/configuration.nix ./nixos/$DEVICE-configuration.nix diff --git a/nixos/common-configuration.nix b/nixos/common-configuration.nix index ae41613..b7ca662 100644 --- a/nixos/common-configuration.nix +++ b/nixos/common-configuration.nix @@ -47,6 +47,7 @@ xfce.thunar xfce.xfconf # needed to save preferences of thunar xfce.ristretto + xfce.tumbler # for thumbnails of imgs pavucontrol # other @@ -61,14 +62,14 @@ # languages texlive.combined.scheme-medium # includes latexmk - #pgf-umlsd # latex diagrams - #pgf - #(pkgs.texlive.combine { - # inherit (pkgs.texlive) - # scheme-medium - # pgf - # ; - #}) + pgf-umlsd # latex diagrams + pgf + (pkgs.texlive.combine { + inherit (pkgs.texlive) + scheme-medium + pgf + ; + }) #gcc clang clang-tools @@ -101,4 +102,8 @@ users.defaultUserShell = pkgs.zsh; environment.shells = with pkgs; [zsh]; + xdg.mime.enable=true; + xdg.mime.defaultApplications = { + "application/pdf" = "zathura"; + }; }