Flake lock file updates: • Removed input 'emacs-overlay' • Removed input 'emacs-overlay/flake-utils' • Removed input 'emacs-overlay/flake-utils/systems' • Removed input 'emacs-overlay/nixpkgs' • Removed input 'emacs-overlay/nixpkgs-stable' • Updated input 'fenix': 'github:nix-community/fenix/5ade7808d45671b545f3516adf61bc9a604a6246' (2023-11-23) → 'github:nix-community/fenix/46a368edf5f1cc16573157797e5acead834d5b2c' (2024-01-30) • Updated input 'fenix/nixpkgs': 'github:nixos/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:nixos/nixpkgs/c002c6aa977ad22c60398daaa9be52f2203d0006' (2024-01-27) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/7ceefc7ee981f7dd9de4cfdd070696e48b4ab43e' (2023-11-22) → 'github:rust-lang/rust-analyzer/d13951f25c4cb880bff09a3c02a796ecc51f69ac' (2024-01-29) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01) → 'github:hercules-ci/flake-parts/60c614008eed1d0383d21daac177a3e036192ed8' (2024-01-29) • Updated input 'flake-parts/nixpkgs-lib': 'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735?dir=lib' (2023-10-29) → 'github:NixOS/nixpkgs/b0d36bd0a420ecee3bc916c91886caca87c894e9?dir=lib' (2023-12-30) • Updated input 'home-manager': 'github:willemml/home-manager/d08f04acae4b7ed2414e5f4d0bc6f1101d20a6ee' (2023-11-12) → 'github:nix-community/home-manager/d634c3abafa454551f2083b054cd95c3f287be61' (2024-01-28) • Updated input 'hyprland': 'github:hyprwm/Hyprland/e55c5a916ab942e641339471bc80b6d2efbc2044' (2023-11-22) → 'github:hyprwm/Hyprland/e65f52bf2d6abb001c402c8302ac7003da8cd06d' (2024-01-30) • Updated input 'hyprland/nixpkgs': 'github:NixOS/nixpkgs/8efd5d1e283604f75a808a20e6cde0ef313d07d4' (2023-10-24) → 'github:NixOS/nixpkgs/ae5c332cbb5827f6b1f02572496b141021de335f' (2024-01-25) • Updated input 'hyprland/wlroots': 'gitlab:wlroots/wlroots/5de9e1a99d6642c2d09d589aa37ff0a8945dcee1' (2023-11-06) → 'gitlab:wlroots/wlroots/00b869c1a96f300a8f25da95d624524895e0ddf2' (2024-01-27) • Updated input 'hyprland/xdph': 'github:hyprwm/xdg-desktop-portal-hyprland/22e7a65ff9633e1dedfa5317fdffc49f68de2ff2' (2023-10-22) → 'github:hyprwm/xdg-desktop-portal-hyprland/5a592647587cd20b9692a347df6939b6d371b3bb' (2024-01-25) • Added input 'hyprland/xdph/hyprlang': 'github:hyprwm/hyprlang/6624f2bb66d4d27975766e81f77174adbe58ec97' (2024-01-03) • Added input 'hyprland/xdph/hyprlang/nixpkgs': follows 'hyprland/xdph/nixpkgs' • Updated input 'nix-github-actions': 'github:nix-community/nix-github-actions/4bb5e752616262457bc7ca5882192a564c0472d2' (2023-11-03) → 'github:nix-community/nix-github-actions/5163432afc817cf8bd1f031418d1869e4c9d5547' (2023-12-29) • Updated input 'nix-index-database': 'github:nix-community/nix-index-database/27920146e671a0d565aaa7452907383be14d8d82' (2023-11-19) → 'github:nix-community/nix-index-database/c782f2a4f6fc94311ab5ef31df2f1149a1856181' (2024-01-28) • Updated input 'nixos-apple-silicon': 'github:tpwrules/nixos-apple-silicon/14b327ca47703c376ebb82ba16dc42ca2baa57d8' (2023-11-19) → 'github:tpwrules/nixos-apple-silicon/6e324ab06cb27a19409ebc1dc2664bf1e585490a' (2024-01-18) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb' (2023-11-19) → 'github:nixos/nixpkgs/c002c6aa977ad22c60398daaa9be52f2203d0006' (2024-01-27) • Removed input 'nixvim' • Removed input 'nixvim/beautysh' • Removed input 'nixvim/beautysh/nixpkgs' • Removed input 'nixvim/beautysh/poetry2nix' • Removed input 'nixvim/beautysh/poetry2nix/flake-utils' • Removed input 'nixvim/beautysh/poetry2nix/nixpkgs' • Removed input 'nixvim/beautysh/utils' • Removed input 'nixvim/flake-utils' • Removed input 'nixvim/flake-utils/systems' • Removed input 'nixvim/nixpkgs' • Removed input 'nixvim/pre-commit-hooks' • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/e558068cba67b23b4fbc5537173dbb43748a17e8' (2023-11-15) → 'github:cachix/pre-commit-hooks.nix/7c54e08a689b53c8a1e5d70169f2ec9e2a68ffaf' (2024-01-28) • Updated input 'pre-commit-hooks/flake-compat': 'github:edolstra/flake-compat/35bb57c0c8d8b62bbfd284272c928ceb64ddbde9' (2023-01-17) → 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04) • Updated input 'pre-commit-hooks/flake-utils': 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31) → 'github:numtide/flake-utils/4022d587cbbfd70fe950c1e2083a02621806a725' (2023-12-04) • Updated input 'pre-commit-hooks/gitignore': 'github:hercules-ci/gitignore.nix/a20de23b925fd8264fd7fad6454652e142fd7f73' (2022-08-14) → 'github:hercules-ci/gitignore.nix/43e1aa1308018f37118e34d3a9cb4f5e75dc11d5' (2023-12-29) • Updated input 'pre-commit-hooks/nixpkgs-stable': 'github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373' (2023-06-03) → 'github:NixOS/nixpkgs/3dc440faeee9e889fe2d1b4d25ad0f430d449356' (2024-01-10) • Updated input 'stylix': 'github:willemml/stylix/2ed2b0086b41d582aca26e083c19c0e47c8991e3' (2023-12-05) → 'github:danth/stylix/7a7c90015de7454060e103e94bb4e6010b5aa062' (2024-01-28) • Updated input 'stylix/base16-alacritty': 'github:aarowill/base16-alacritty/63d8ae5dfefe5db825dd4c699d0cdc2fc2c3eaf7' (2023-01-21) → 'github:aarowill/base16-alacritty/c95c200b3af739708455a03b5d185d3d2d263c6e' (2023-12-31) • Added input 'stylix/base16-alacritty-yaml': 'github:aarowill/base16-alacritty/63d8ae5dfefe5db825dd4c699d0cdc2fc2c3eaf7' (2023-01-21) • Updated input 'stylix/home-manager': 'github:nix-community/home-manager/c3ab5ea047e6dc73df530948f7367455749d8906' (2023-08-12) → 'github:nix-community/home-manager/3df2a80f3f85f91ea06e5e91071fa74ba92e5084' (2024-01-23)
1.5 KiB
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 Services as modules
Services should be converted to modules. These should ideally support both linux and darwin hosts (launchd and systemd).