All Projects → hardselius → dotfiles

hardselius / dotfiles

Licence: MIT license
My personal dotfiles

Programming Languages

Nix
1067 projects
shell
77523 projects

Projects that are alternatives of or similar to dotfiles

nixpkgs
My Nix system configs!
Stars: ✭ 143 (+101.41%)
Mutual labels:  nix, nix-darwin, home-manager, nix-flake
nyx
⚙️Nix[OS] Configuration
Stars: ✭ 50 (-29.58%)
Mutual labels:  nix, home-manager, nix-flake
microvm.nix
NixOS MicroVMs
Stars: ✭ 136 (+91.55%)
Mutual labels:  nix, flakes, nix-flake
nix-config
A collection of my system configs and dotfiles
Stars: ✭ 35 (-50.7%)
Mutual labels:  nix, home-manager, nix-flake
nix-configs
My Nix{OS} configuration files
Stars: ✭ 54 (-23.94%)
Mutual labels:  nix, home-manager, nix-flake
base16.nix
Quickly theme programs in your favourite base16 colorscheme
Stars: ✭ 61 (-14.08%)
Mutual labels:  nix, home-manager, nix-flake
dotfiles
No place like ~. Nix. All. The. Things.
Stars: ✭ 48 (-32.39%)
Mutual labels:  nix, home-manager
dotfiles
My NixOS dotfiles
Stars: ✭ 21 (-70.42%)
Mutual labels:  nix, home-manager
dotnix
Shackled within an elaborate prison of my own design.
Stars: ✭ 35 (-50.7%)
Mutual labels:  nix, home-manager
dconf2nix
🐾 Convert Dconf files (e.g. Gnome Shell) to Nix, as expected by Home Manager
Stars: ✭ 51 (-28.17%)
Mutual labels:  nix, home-manager
homeage
runtime decrypted age secrets for nix home manager
Stars: ✭ 43 (-39.44%)
Mutual labels:  nix, home-manager
system
Declarative NixOS system configuration for all my machines
Stars: ✭ 14 (-80.28%)
Mutual labels:  nix, home-manager
nixcfg
NixOS and Home-Manager configurations for all of my devices (desktop, Pinebook Pro, RPi4, cloud servers, etc). Like dotfiles, but way better. (née 'nixos-config')
Stars: ✭ 119 (+67.61%)
Mutual labels:  nix, nix-flake
dotfiles
NixOS system config & Home-Manager user config
Stars: ✭ 43 (-39.44%)
Mutual labels:  nix, home-manager
impermanence
Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
Stars: ✭ 401 (+464.79%)
Mutual labels:  nix, home-manager
rust-nix-templater
Generates Nix build / dev files for Rust projects.
Stars: ✭ 49 (-30.99%)
Mutual labels:  nix, flakes
nvfetcher
Generate nix sources expr for the latest version of packages
Stars: ✭ 95 (+33.8%)
Mutual labels:  nix, flakes
nix-rice
A library to functionally define your configuration and theme (rice) with Nix
Stars: ✭ 43 (-39.44%)
Mutual labels:  nix, home-manager
deadnix
Scan Nix files for dead code
Stars: ✭ 121 (+70.42%)
Mutual labels:  nix, nix-flake
dotfiles
My NixOS configuration featuring awesome and neovim
Stars: ✭ 40 (-43.66%)
Mutual labels:  nix, flakes

Build Nix environments

Martin's dotfiles and Nix config

These are my dotfiles. There are many like them, but these are mine.

Bootstrapping a new machine

On a new mac, you might need to install git.

xcode-select --install

Verify the installation by running

xcode-select -p

should output the following

/Library/Developer/CommandLineTools

Clone this repo. It might be a good idea to clone using HTTPS if you don’t have your SSH keys configured. I store my SSH key on a Yubikey for portability but that setup relies on some of the stuff that’s configured in here. HTTPS is a safe bet. You can always fix your local git config later on using something like

git config [email protected]:.insteadof https://github.com/

Install nix on macOS

In order to perform a multi-user install of nix on macOS, follow these steps.

The first order of business is to make sure diskutil is in your $PATH. If it isn’t, execute

export PATH=/usr/sbin:$PATH

to add it. Now you can go ahead and run the installer

sh <(curl -L https://nixos.org/nix/install) --daemon

This should take you throught the process in a nice and straight-forward way. Once the installation finishes, you can verify it by opening a new terminal, and executing

nix-shell -p nix-info --run "nix-info -m"

It’s possible that this won’t work straight away, and you may get something like

error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted

Don’t worry. The issue is very likely that the nix-daemon isn’t up and running just yet. Give it a few seconds and try again.

Flakes

With Nix installed, we’re ready to bootstrap and install the actual configuration. Flakes is finally supported in the latest versions of Nix, so from the root of the checkout out repo we should be able to go ahead and run

nix build \
	--extra-experimental-features nix-command \
	--extra-experimental-features flakes \
	.#darwinConfigurations.bootstrap-x86.system
./result/sw/bin/darwin-rebuild switch --flake .#bootstrap-x86

Then open up a new terminal session and run

darwin-rebuild switch --flake .#macbook

Tada! Everything should be installed and ready to go.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].