From 9ed6d70baa84edb65b19e319611ddccc6968379c Mon Sep 17 00:00:00 2001 From: Random936 Date: Thu, 4 Jul 2024 22:16:03 -0700 Subject: [PATCH] Added home manager install bash script; removed latex from emacs; updated media.nix hardware config --- hardware/media.nix | 2 +- home/emacs.nix | 1 - install-homemanager.sh | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 install-homemanager.sh diff --git a/hardware/media.nix b/hardware/media.nix index c9fd506..daa9f99 100644 --- a/hardware/media.nix +++ b/hardware/media.nix @@ -14,7 +14,7 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/80be06c6-fafe-43de-a0e5-90464bdd0666"; + { device = "/dev/disk/by-uuid/e92861c0-ac2d-4477-a57a-c9ea6108ff5d"; fsType = "ext4"; }; diff --git a/home/emacs.nix b/home/emacs.nix index 724c0c7..1b352b4 100644 --- a/home/emacs.nix +++ b/home/emacs.nix @@ -7,7 +7,6 @@ isync ispell ledger - texliveFull mu # Fonts diff --git a/install-homemanager.sh b/install-homemanager.sh new file mode 100755 index 0000000..6280112 --- /dev/null +++ b/install-homemanager.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +STATE_VERSION="24.05" + +if [ $(id -u) != 0 ]; then + echo "This script must be run as root." + exit +fi + +echo "Adding home-manager:${STATE_VERSION} to nix channels..." +nix-channel --add "https://github.com/nix-community/home-manager/archive/release-${STATE_VERSION}.tar.gz" home-manager + +echo "Updating nix channels..." +nix-channel --update + +echo "Installing home-manager..." +nix-shell '' -A install + +echo "Finished..."