This are my dotfiles, there are many like them, but these are mine. My
dotfiles is my best friend. It is my life.
Current users:
- Kepler: Darwin systems
- Aether: Linux systems
- Misdreavus: Linux VM
Current hosts:
- Cygnus: Macbook Pro M1
- Ophicus: Thinkbook E490
- Johto: NixOS VM
- Install Nix
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
- Clone this repo
git clone [email protected]:aksel-os/.dotfiles # or git clone https://github.com/aksel-os/.dotfiles.git
- cd into
.dotfiles
cd ~/.dotfiles/
- Build the flake
nix develop # mac just provision # linux just setup
Assuming you’ve cloned the directory.
- Format the drive NixOS will be installed on
nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount path/to/disko/config
- Remove any mentions to my secrets flake. As this will cause the build to fail.
- Run the nixos-install command targeting the flake and correct host
nixos-install --flake /absolute/path/to/flake.nix.#<host>
- Add your own secrets, and rebuild the flake afterwards to apply the
changes.
just switch
To apply changes made to the ./modules
, ./homes
or ./hosts
, run the following:
just switch
To update the flake.lock run the following:
just update
# or
just update <pkg>