No description
This repository has been archived on 2024-11-22. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file Use this template
Seven Of Aces bd6a2bebb6 new file: assets/.bashrc
new file:   assets/direnvrc
	new file:   assets/toolchains/rust/.envrc
	new file:   assets/toolchains/rust/flake.nix
	new file:   flake.lock
	modified:   flake.nix
	renamed:    hosts/blackstar/home-manager/home.nix -> home.nix
	deleted:    hosts/rogue/home-manager/home.nix
	deleted:    hosts/shared/home-manager/shared_home.nix
	modified:   modules/nixos/rust-toolchain.nix
	new file:   modules/nixos/rust-toolchain.toml
	new file:   result
2024-08-04 14:13:10 -07:00
assets new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
hosts new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
modules new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
overlays Initial Commit 2024-08-04 06:26:01 +00:00
pkgs Initial Commit 2024-08-04 06:26:01 +00:00
flake.lock new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
flake.nix new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
home.nix new file: assets/.bashrc 2024-08-04 14:13:10 -07:00
README.md Update README.md 2024-08-04 15:31:11 +00:00
result new file: assets/.bashrc 2024-08-04 14:13:10 -07:00

NixOS Dotfiles

The package manager Nix, and the OS built around it; NixOS, work by focusing the whole of the system's configuration on just a few, functionally-programmed files that'll reproduce the exact system you want.

This offers immutability and testability, which is a great strength for workstations.

These are those files.

NOTICE

If you wish to use this, CHANGE `nixos/hardware-configuration FOR YOUR OWN.*** It contains hard drive GUID labels, which you do not have. This can bork your install.

Install

  1. Clone the repo and cd into it:
git clone [repo url] ~/.dotfiles && cd ./dotfiles
  1. Generate hardware configuration:
sudo nixos-generate-config
  1. Copy it to the nixos directory:
cp /etc/nixos/hardware-configuration.nix ./nixos/hardware-configuration.nix

TODO: Add more.

  1. Change settings across nixos/configuration.nix, shared_config.nix, home.nix and shared_home.nix to your preferences (Username, etc)

  2. Test it out

NixOS

sudo nixos-rebuild test --flake .#[hostname]

Home

home-manager switch

Default hostnames are blackstar (desktop) and rogue (laptop)

  1. Set as default
sudo nixos-rebuild switch --flake .#[hostname]