bnjmnt4n / system

My configuration files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bnjmnt4n/system

This repository contains configuration files for my systems, written largely in Nix.

Setup

A Nix installation with flakes support is required.

# Install Nix if not installed
$ sh <(curl -L https://nixos.org/nix/install) # Linux/Mac
$ sh <(curl -L https://nixos.org/nix/install) --daemon # WSL

# Setup Nix flakes support
$ mkdir -p ~/.config/nix
$ echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf

# Clone the repository.
$ git clone https://github.com/bnjmnt4n/system.git
$ cd system

# Use local development shell
$ nix develop
$ swn # Switch to the new NixOS/nix-darwin configuration.
$ swh # Switch to the new home configuration.

# Update dependencies.
$ nix flake update

# Alternative commands:
# Switching NixOS configuration:
$ sudo nixos-rebuild switch --flake '.#$HOSTNAME'

# Switching nix-darwin configuration:
$ nix build '.#darwinConfigurations.$HOSTNAME_$USER.system'
$ ./result/sw/bin/darwin-rebuild switch --flake . '.#$HOSTNAME'

# Switching home-manager configuration:
$ nix build '.#homeConfigurations.$HOSTNAME_$USERNAME.activationPackage'
$ ./result/activate

Other steps

MacOS:

  1. Install the standalone variant of Tailscale.

Windows:

  1. Install AutoHotkey.

Inspiration

I've gotten inspiration, and in some cases drawn liberally from the following places:

About

My configuration files.


Languages

Language:Nix 51.2%Language:Lua 46.8%Language:CSS 2.0%