From a1835a4ae9eacf8cd0379e4cd1aa768218426967 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 7 Jan 2025 18:21:11 -0800 Subject: fix --- README.org | 10 +++++++--- stg2.sh | 5 +++++ stg3.sh | 15 +++++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100755 stg2.sh create mode 100755 stg3.sh diff --git a/README.org b/README.org index 1b49db0..0d502c2 100644 --- a/README.org +++ b/README.org @@ -17,15 +17,19 @@ and then on your NixOS system, run: # remove the single CHANGEME line nano ~/src/toughnix/configuration.nix - - sudo nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update - sudo nixos-rebuild switch --flake .#continuity-dell + bash ~/src/toughnix/stg2.sh + bash ~/src/toughnix/stg3.sh #+end_src Note the line where we run ~nano~; during this period you should change any hardware or person-specific settings, and also alter ~configuration.nix~ more if you are using an encrypted drive. After this process, reboot and log into your user. You will immediately be taken into Hyprland, and Emacs and Firefox will autostart. +** Troubleshooting +If you encounter an error in home-manager after building (can't start the home-manager process +because it can't resolve so-and-so hostname), run ~doas nixos-rebuild switch~, and possibly +wait a couple seconds before that. I've run into this issue before. Note that after building +this system, my system uses ~doas~ instead of ~sudo~. * Usage On your first install, you will be greeted with firefox, as well as EMacs. If Waybar doesn't appear, run ~hyprctl monitors~ in a terminal (Windows key + Enter), and you should see the monitors diff --git a/stg2.sh b/stg2.sh new file mode 100755 index 0000000..bfabeac --- /dev/null +++ b/stg2.sh @@ -0,0 +1,5 @@ +cd /etc/nixos +sudo nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update +sudo nixos-rebuild switch --flake .#continuity-dell +# home manager weirdness +doas nixos-rebuild switch diff --git a/stg3.sh b/stg3.sh new file mode 100755 index 0000000..fde932a --- /dev/null +++ b/stg3.sh @@ -0,0 +1,15 @@ +#!/bin/sh +chmod 644 ~/src/toughnix/configuration.nix +chmod 644 ~/src/toughnix/home.nix +chmod 644 ~/src/toughnix/vars.nix +chmod 644 ~/src/toughnix/flake.lock +chmod 644 ~/src/toughnix/flake.nix + +doas chmod 644 /etc/nixos/configuration.nix +doas chmod 644 /etc/nixos/home.nix +doas chmod 644 /etc/nixos/vars.nix +doas chmod 644 /etc/nixos/flake.lock +doas chmod 644 /etc/nixos/flake.nix + +emacs --eval '(nerd-icons-install-fonts)' +emacs --eval '(all-the-icons-install-fonts)' -- cgit