![]() Flake lock file updates: • Updated input 'emacs-overlay': 'github:nix-community/emacs-overlay/94a0f967876bbb4b42292026d2c776cade605589' (2023-11-16) → 'github:nix-community/emacs-overlay/f6bd5b516e016b4dec94bdf72ace884771a561e3' (2023-11-18) • Updated input 'emacs-overlay/nixpkgs-stable': 'github:NixOS/nixpkgs/d4b5a67bbe9ef750bd2fdffd4cad400dd5553af8' (2023-11-14) → 'github:NixOS/nixpkgs/9fb122519e9cd465d532f736a98c1e1eb541ef6f' (2023-11-16) • Updated input 'fenix': 'github:nix-community/fenix/ca6415d87d2e1b5975d59b2a68ae19029de1759c' (2023-11-11) → 'github:nix-community/fenix/a8a70dfe2b9d8a40a51642c554fee83942850c49' (2023-11-18) • Updated input 'fenix/nixpkgs': 'github:nixos/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04) → 'github:nixos/nixpkgs/bf744fe90419885eefced41b3e5ae442d732712d' (2023-11-14) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/11a87c917943dac5a568579f799c2d7458324103' (2023-11-10) → 'github:rust-lang/rust-analyzer/255eed40c45fcf108ba844b4ad126bdc4e7a18df' (2023-11-17) • Updated input 'hyprland': 'github:hyprwm/Hyprland/9afdd61adeaf413afbe853dbc5fdf6853c8bde21' (2023-11-11) → 'github:hyprwm/Hyprland/3d89654254a3cc23a57e1bdcd39ad9f743bf98e2' (2023-11-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04) → 'github:nixos/nixpkgs/c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad' (2023-11-17) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/ea758da1a6dcde6dc36db348ed690d09b9864128' (2023-11-06) → 'github:cachix/pre-commit-hooks.nix/e558068cba67b23b4fbc5537173dbb43748a17e8' (2023-11-15) • Updated input 'stylix': 'github:danth/stylix/5c6f7fd709be441505998fc51a25b645a44d359e' (2023-11-08) → 'github:danth/stylix/a15c3196c1d620c18cbee8229092598384a89fef' (2023-11-18) |
||
---|---|---|
.github/workflows | ||
common | ||
home | ||
nixos | ||
packages | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.org |
dotfiles.nix
My dotfiles using Nix. System configuration done using nix-darwin and NixOS. User configuration using home-manager. This repo is put together as a flake using flake-parts. On NixOS home-manager is used as a NixOS module, on Darwin it is used separately from nix-darwin.
dotfiles.nix is inspired by terlar/nix-config, ~rycee/configurations and hlissner/dotfiles.
All Nix code in this repo is formatted using alejandra.
Usage
Show what this flake provides:
nix flake show
Switch both system (NixOS) and home:
nixos-rebuild switch --flake .
Switch system (nix-darwin):
darwin-rebuild switch --flake .
Switch home only (on Darwin):
nix run .#home
Build home without switching:
nix build .#home
Update all inputs:
nix flake update --commit-lock-file
Update a single input:
nix flake lock --update-input nixpkgs --commit-lock-file
Format all nix files:
nix fmt
Enter the dev shell (if not using nix-direnv):
nix develop
Tasks
TODO Break out emacs config
Emacs configuration should be in it's own repository. Lisp code should be extracted into separate files or an org-babel setup.
TODO Services as modules
Services should be converted to modules. These should ideally support both linux and darwin hosts (launchd and systemd).