Name | OS | DE | WM | Use | |
---|---|---|---|---|---|
albus |
NixOS 23.11 | Gnome | - | Personal | |
ron |
macOS 14.1 | - | - | Personal | |
severus |
macOS 12.6 | - | - | Personal |
This dotfiles are manage using nix
and home-manager
.
- Clone the repository and go inside the folder
nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nixos/nixpkgs#git -- clone git@github.com:JesusMtnez/dotfiles $HOME/.dotfiles
- Switch to
$HOSTNAME
flake.
nixos-rebuild switch --use-remote-sudo --flakes $HOME/.dotfiles/.
Before attempting to use this dotfiles in macOS systems, we need to:
- Install Command Line Tools (includes
git
)
xcode-select --install
- Install
homebrew
using its latestpkg
.
# Setup brew in PATH
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
- Install
nix
using DeterminateSystemspkg
.
- Setup
nix-darwin
applying the flake for the first time.
nix run nix-darwin -- switch --flake $HOME/.dotfiles/.
- Switch to
$HOSTNAME
flake.
# Using nix-darwin, build and switch to your configuration
darwin-rebuild switch --flake $HOME/.dotfiles/.
In System Settings / Startup and Shutdown / Background Services disable Application menus daemon.
In Settings Manager / Session and Startup / Advanced check Launch GNOME services at startup.
- Check integrity:
sqlite3 /nix/var/nix/db/db.sqlite 'pragma integrity_check'
. - If the result is not
OK
:
# cd /nix/var/nix/db
# nix-shell -p sqlite
[nix-shell:/nix/var/nix/db]# sqlite3 db.sqlite ".backup 'db.bak.sqlite' "
[nix-shell:/nix/var/nix/db]# sqlite3 db.sqlite
sqlite> .output db.sql
sqlite> .dump
[nix-shell:/nix/var/nix/db]# sqlite3 db.new.sqlite < db.sql
[nix-shell:/nix/var/nix/db]# mv db.new.sqlite db.sqlite