diff options
author | Franck Cuny <franck@fcuny.net> | 2023-12-14 17:54:52 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-12-14 17:54:52 -0800 |
commit | cd54909e6ef6faa27c3066100782acf7fd704890 (patch) | |
tree | 5953b23f268347051090b65aa14348d1a9802d37 /README.md | |
parent | use the `update-flake-lock` to update nix flakes (diff) | |
download | world-cd54909e6ef6faa27c3066100782acf7fd704890.tar.gz |
update the main documentation
Delete unused/outdated documentations.
Diffstat (limited to '')
-rw-r--r-- | README.md | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/README.md b/README.md index 4884d66..3dcc633 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,30 @@ Configurations for my machines. -## nixos +## Operations -To rebuild the host: +I use [devshell](https://github.com/numtide/devshell) to manage this environment. Most commands related to the maintenance (building the configuration, switching to a new configuration, etc) are managed with it. You can type `menu` and it will display something similar to: +```sh +[darwin] -``` sh -sudo nixos-rebuild switch --flake . -``` - -or + build-darwin - Build the current darwin configuration + switch-darwin - Switch to the current darwin configuration -``` sh -nix-rebuild-host -``` +[general commands] -## home-manager + menu - prints this menu + treefmt - one CLI to format the code tree -To rebuild the configuration for `home-manager`: +[nix] -``` sh -home-manager switch --flake . + update - Update + Commit the Lock File ``` -## update flakes - -To update the flakes: - -``` sh -nix flake update -``` +and you can type any of these commands. ## templates To use one of the template, run: ``` sh -nix flake init -t .#rust nix flake init -t .#go ``` |