mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 11:17:17 +00:00
Adds markdown version of README (using ox-md)
This commit is contained in:
parent
0615ead429
commit
feea308d00
2 changed files with 65 additions and 0 deletions
64
README.md
Normal file
64
README.md
Normal file
|
@ -0,0 +1,64 @@
|
|||
My dotfiles using Nix. System configuration done using [nix-darwin](https://github.com/LnL7/nix-darwin) and
|
||||
[NixOS](https://nixos.org/). User configuration using [home-manager](https://github.com/nix-community/home-manager). This repo is put
|
||||
together as a flake using [flake-parts](https://github.com/hercules-ci/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](https://github.com/terlar/nix-config/tree/main), [~rycee/configurations](https://sr.ht/~rycee/configurations/)
|
||||
and [hlissner/dotfiles](https://github.com/hlissner/dotfiles).
|
||||
|
||||
All Nix code in this repo is formatted using [alejandra](https://github.com/kamadorueda/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](https://github.com/nix-community/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).
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
#+title: dotfiles.nix
|
||||
#+options: author:nil date:nil toc:nil
|
||||
|
||||
My dotfiles using Nix. System configuration done using [[https://github.com/LnL7/nix-darwin][nix-darwin]] and
|
||||
[[https://nixos.org/][NixOS]]. User configuration using [[https://github.com/nix-community/home-manager][home-manager]]. This repo is put
|
||||
|
|
Loading…
Add table
Reference in a new issue