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/28dbd8b43ea328ee708f7da538c63e03d5ed93c8' (2024-02-03) → 'github:nix-community/fenix/09ef6ec17141904ca28ddd62f2697f63c2aaa799' (2024-02-15) • Updated input 'fenix/nixpkgs': 'github:nixos/nixpkgs/b8b232ae7b8b144397fdb12d20f592e5e7c1a64d' (2024-01-31) → 'github:nixos/nixpkgs/35ff7e87ee05199a8003f438ec11a174bcbd98ea' (2024-02-13) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/8f6a72871ec87ed53cfe43a09fb284168a284e7e' (2024-02-02) → 'github:rust-lang/rust-analyzer/dba59970bcccfb3c6fc16ea0d0d79da875f22316' (2024-02-14) • Updated input 'home-manager': 'github:nix-community/home-manager/21b078306a2ab68748abf72650db313d646cf2ca' (2024-02-11) → 'github:nix-community/home-manager/043ba285c6dc20f36441d48525402bcb9743c498' (2024-02-14) • Updated input 'hyprland': 'github:hyprwm/Hyprland/2a3429d4cfdc01794b9d6fc1b49be1da019b5606' (2024-02-13) → 'github:hyprwm/Hyprland/a8dae8f5e198327e5de8508d860234089f31e272' (2024-02-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/f9d39fb9aff0efee4a3d5f4a6d7c17701d38a1d8' (2024-02-11) → 'github:nixos/nixpkgs/a4d4fe8c5002202493e87ec8dbc91335ff55552c' (2024-02-15) |
||
---|---|---|
common | ||
home | ||
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