summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-04-17 10:54:17 -0400
committerBen Sima <ben@bsima.me>2024-04-18 13:24:31 -0400
commite47e1366387b48f9e344b243e6bf30e7185db395 (patch)
tree08f8066a878eb8d71adf54a674cea62c37dd9414
parent6e20f257a2d183a2ac70e76d41a750268be00ca0 (diff)
delete unused default.nix and install.sh
i just install like the home-manager docs say to now
-rw-r--r--default.nix17
-rwxr-xr-xinstall.sh38
2 files changed, 0 insertions, 55 deletions
diff --git a/default.nix b/default.nix
deleted file mode 100644
index 2268a4f..0000000
--- a/default.nix
+++ /dev/null
@@ -1,17 +0,0 @@
-let
- nixpkgs = builtins.fetchTarball (import ./nixpkgs.nix);
- pkgs = import "${nixpkgs}" {
- overlays = [./overlay.nix];
- };
- hm-src = pkgs.home-manager.src;
-in
-rec {
- nixpkgs = pkgs;
- home-manager = pkgs.callPackage "${hm-src}/home-manager" {
- path = toString ./home-manager;
- };
-
- install = pkgs.callPackage "${hm-src}/home-manager/install.nix" {
- inherit home-manager;
- };
-}
diff --git a/install.sh b/install.sh
deleted file mode 100755
index 88a7b01..0000000
--- a/install.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bash
-#
-set -euxo pipefail
-#
-if [[ -z "$1" ]]; then
- echo "usage: install.sh <file.nix>"
- echo "where <file.nix> is something from the 'profiles' directory"
- exit 1
-else
- #
- mkdir -p ~/.config/nixpkgs
- NIXDIR="$HOME/.config/nixpkgs"
- HOMEFILE="$NIXDIR/home.nix"
- NIXFILE="$(pwd)/$1"
- #
- # start from scratch
- rm "$HOMEFILE" || true
- ln -s "$NIXFILE" "$HOMEFILE"
- rm "$NIXDIR/config.nix" || true
- ln -s "$(pwd)/lib/config.nix" "$NIXDIR/config.nix"
- #
- # the notmuch config location is by default ~/.notmuch-config, but home-manager
- # puts it at ~/.config/notmuch/notmuchrc (which makes sense) and then sets
- # NOTMUCH_CONFIG. however, if a program for some reason doesn't read
- # NOTMUCH_CONFIG (emacs), then it won't find the right config file, so I
- # override with a symlink.
- #
- #mkdir -p ~/.config/notmuch
- #[[ -e ~/.notmuch-config ]] || ln -s ~/.config/notmuch/notmuchrc ~/.notmuch-config
- #
- # symlinking must occur before initial generation. now we can install, and
- # pin our own nixpkgs.
- #
- #nix-channel --update
- NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH \
- nix-shell '<home-manager>' -A install
- #nix-shell . -A install
-fi