mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
My dotfiles, this time with nix.
Flake lock file updates:
• Updated input 'fenix':
'github:nix-community/fenix/d0439c495e5cd13ff252ade520ca620f52abb40b' (2024-03-15)
→ 'github:nix-community/fenix/0371cb3179c16f4f932557f855082bf57d371166' (2024-05-04)
• Updated input 'fenix/nixpkgs':
'github:nixos/nixpkgs/0ad13a6833440b8e238947e47bea7f11071dc2b2' (2024-03-12)
→ 'github:nixos/nixpkgs/63c3a29ca82437c87573e4c6919b09a24ea61b0f' (2024-05-02)
• Updated input 'fenix/rust-analyzer-src':
'github:rust-lang/rust-analyzer/14558af15ee3d471bf8f4212f7609ae1f9647bc5' (2024-03-14)
→ 'github:rust-lang/rust-analyzer/1a5bb27c018c947dab01ab70ffe1d267b0481a17' (2024-05-03)
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2' (2024-03-01)
→ 'github:hercules-ci/flake-parts/e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e' (2024-05-02)
• Updated input 'flake-parts/nixpkgs-lib':
'github:NixOS/nixpkgs/1536926ef5621b09bba54035ae2bb6d806d72ac8?dir=lib' (2024-02-29)
→ '
|
||
---|---|---|
common | ||
home | ||
libvirt/vm | ||
nixos | ||
packages | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
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.
All Nix code in this repo is formatted using alejandra.
Usage
Switch both system (NixOS) and home:
nixos-rebuild switch --flake .
Switch system (nix-darwin):
darwin-rebuild switch --flake .
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