From 5f1438f0568589fc4fcfe10ebc0546757a63de03 Mon Sep 17 00:00:00 2001 From: Random936 Date: Wed, 12 Nov 2025 21:10:03 -0500 Subject: [PATCH] Updated hardware config to use drive labels; added README content --- README.org | 53 ++++++++++++++++++++++++++++++++++++++++++----- hardware/omen.nix | 18 ++++++++-------- 2 files changed, 57 insertions(+), 14 deletions(-) diff --git a/README.org b/README.org index a8c9c48..ec16034 100644 --- a/README.org +++ b/README.org @@ -1,9 +1,52 @@ -* Dotfiles Repo +* NixOS Setup for Omen Laptop + +Installing the base configuration: -To install these dotfiles, you can use gnu stow. Running the following command will automatically create symlinks for every file in this repo. #+begin_src bash -git clone https://github.com/Random936/dotfiles -cd dotfiles/ -stow . +nix-shell -p vim git +git clone https://git.randomctf.com/random936/dotfiles +sudo nixos-rebuild switch --flake .#randomctf #+end_src + +Install home manager and related packages: +#+begin_src bash +sudo ./install-homemanager.sh 25.05 +home-manager switch --extra-experimental-features "nix-command flakes" --flake .#random +#+end_src + +** Rbw (Rust Bitwarden) Setup + +Before continuing, you will need to login on the [[https://bitwarden.com][Bitwarden]] website to retrieve your API key. This can be found under: Settings > Security > Keys > View API Key. + +#+begin_src bash +# Enter the values it asks for from the Bitwarden view API key window. +rbw register +rbw login +rbw unlock +#+end_src + +** Mail Setup + +Setting up ~pass~: +#+begin_src bash +gpg --full-generate-key +# Copy the value from the output above and use it in the command below. +pass init +#+end_src + +Setting up ~protonmail-bridge~: + +#+begin_src bash +systemctl stop --user protonmail-bridge.service +protonmail-bridge --cli +cert export ~/.config/protonmail/bridge-v3/ +login # This might take a while. +#+end_src + +Setting up ~mu4e~: +#+begin_src bash +mu init --maildir=~/.mail --my-address= +mbsync -a +#+end_src + diff --git a/hardware/omen.nix b/hardware/omen.nix index a1b9ddf..9dabc58 100644 --- a/hardware/omen.nix +++ b/hardware/omen.nix @@ -19,16 +19,16 @@ options snd-hda-intel model=dell-headset-multi ''; - fileSystems."/" = - { device = "/dev/disk/by-uuid/f4f207c5-08d5-4848-920c-76e99280b04c"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-partlabel/root"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7F2D-4654"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-partlabel/EFI"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; swapDevices = [ ];