From e712278911254e9c19d4a71fc3a236b6f2a281b8 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sat, 2 Apr 2022 18:51:41 -0400 Subject: [PATCH] feat(Infini-DESKTOP): add local /etc/nixpkgs --- hosts/Infini-DESKTOP/default.nix | 1 + hosts/Infini-DESKTOP/install.bash | 4 ++++ hosts/Infini-DESKTOP/prep.bash | 1 + hosts/Infini-DESKTOP/readme.org | 5 +++++ 4 files changed, 11 insertions(+) diff --git a/hosts/Infini-DESKTOP/default.nix b/hosts/Infini-DESKTOP/default.nix index ae6fe46..fd52ad1 100644 --- a/hosts/Infini-DESKTOP/default.nix +++ b/hosts/Infini-DESKTOP/default.nix @@ -18,6 +18,7 @@ directories = [ "/home" "/etc/nixos" + "/etc/nixpkgs" # /var directories "/var/log" diff --git a/hosts/Infini-DESKTOP/install.bash b/hosts/Infini-DESKTOP/install.bash index 385a9fa..b65fe7d 100755 --- a/hosts/Infini-DESKTOP/install.bash +++ b/hosts/Infini-DESKTOP/install.bash @@ -45,6 +45,10 @@ echo "LOG: Cloning configuration" sudo chown -R infinidoge /mnt/persist/etc/nixos git clone --no-hardlinks --progress https://gitlab.com/infinidoge/devos.git /mnt/persist/etc/nixos +echo "LOG: Cloning nixpkgs" +sudo chown -R infinidoge /mnt/persist/etc/nixpkgs +git clone --no-hardlinks --progress https://github.com/NixOS/nixpkgs.git /mnt/persist/etc/nixpkgs + echo "LOG: Installing Doom Emacs" sudo mkdir -p /mnt/persist/home/infinidoge/.config/emacs git clone --no-hardlinks --progress --depth 1 https://github.com/hlissner/doom-emacs /mnt/persist/home/infinidoge/.config/emacs diff --git a/hosts/Infini-DESKTOP/prep.bash b/hosts/Infini-DESKTOP/prep.bash index 2697d2c..21f0e3a 100755 --- a/hosts/Infini-DESKTOP/prep.bash +++ b/hosts/Infini-DESKTOP/prep.bash @@ -35,6 +35,7 @@ sudo btrfs subvolume create /mnt/root sudo btrfs subvolume create /mnt/root/home sudo mkdir -p /mnt/root/etc sudo btrfs subvolume create /mnt/root/etc/nixos +sudo btrfs subvolume create /mnt/root/etc/nixpkgs sudo btrfs subvolume create /mnt/boot sudo btrfs subvolume create /mnt/nix sudo btrfs subvolume create /mnt/nix/store diff --git a/hosts/Infini-DESKTOP/readme.org b/hosts/Infini-DESKTOP/readme.org index ac644be..3f358a8 100644 --- a/hosts/Infini-DESKTOP/readme.org +++ b/hosts/Infini-DESKTOP/readme.org @@ -109,6 +109,7 @@ sudo btrfs subvolume create /mnt/root sudo btrfs subvolume create /mnt/root/home sudo mkdir -p /mnt/root/etc sudo btrfs subvolume create /mnt/root/etc/nixos +sudo btrfs subvolume create /mnt/root/etc/nixpkgs sudo btrfs subvolume create /mnt/boot sudo btrfs subvolume create /mnt/nix sudo btrfs subvolume create /mnt/nix/store @@ -153,6 +154,10 @@ echo "LOG: Cloning configuration" sudo chown -R infinidoge /mnt/persist/etc/nixos git clone --no-hardlinks --progress https://gitlab.com/infinidoge/devos.git /mnt/persist/etc/nixos +echo "LOG: Cloning nixpkgs" +sudo chown -R infinidoge /mnt/persist/etc/nixpkgs +git clone --no-hardlinks --progress https://github.com/NixOS/nixpkgs.git /mnt/persist/etc/nixpkgs + echo "LOG: Installing Doom Emacs" sudo mkdir -p /mnt/persist/home/infinidoge/.config/emacs git clone --no-hardlinks --progress --depth 1 https://github.com/hlissner/doom-emacs /mnt/persist/home/infinidoge/.config/emacs