Skip to content

na-son/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My nix config

Built off of https://github.com/dustinlyons/nixos-config

Usage

Macos

Install xcode bits

xcode-select --install

Install nix

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Build system (optional)

nix run .#build

Make configuration active

nix run .#build-switch

Linux

Boot the minimal installer

THIS WILL WIPE YOUR DISKS AND APPLY THE PARTITION SCHEME IN ./modules/nixos/disk-config.nix

sudo nix run --extra-experimental-features 'nix-command flakes' github:na-son/nixos-config#install

After the initial install completes and you land at the greeter, hit CTRL+ALT+F6 to open a terminal and login as root.

Set a password for your user, and configure things like keyboard layout and drivers in /etc/nixos/hosts/nixos/default.nix.

passwd $user
logout
# login as $user
cd /etc/nixos
# make changes to the system config if necessary
sudo vim hosts/nixos/default.nix
nix run .#build-switch

To testi changes you can also run:

nixos-rebuild build --flake .#x86_64-linux

Apps

Apps are included to sweeten the nix UX, for example nix run .#build replaces nix build .#darwinConfigurations.macos.system.

Cachix

Generate an auth token here

# authenticate
cachix auth $auth-token

nix build $thing | cachix push $my-cachix
# example
nix --extra-experimental-features 'nix-command flakes' build .#darwinConfigurations.macos.system | cachix push na-son
# if "nothing to push" when you know there is something to push:
cachix push na-son ./result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published