Working on Emacs

- now my custom Emacs package lives inside `pkgs/`
- small org-mode updates
- added custom Emacs commands to rebuild NixOS
This commit is contained in:
Andrea Ciceri 2021-10-06 10:50:19 +02:00
parent ce354185e8
commit 54a41ac797
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 73 additions and 51 deletions

View file

@ -1,35 +1,39 @@
* NixFleet
A complete, declarative and reproducible configuration of my entire Nix fleet, this includes the following machines:
A complete, declarative and reproducible configuration of my entire
Nix fleet, this includes the following machines:
- my main home workstation ~pc~
- homeserver (mainly a nas) ~hs~ *(to do, soon)*
- my arm based [[https://wiki.pine64.org/wiki/Pinebook_Pro][PineBook Pro]] ~pbp~, almost completely open hardware
- MacBook PRO that I use for work, for this I'll use [[https://github.com/LnL7/nix-darwin][nix-darwin]] keeping macOs 11 Big Sur *(to do, not soon)*
The different confgurations share many profiles, in fact my original goal was to avoid to rewrite the same Nix derivations for my different machines.
The different confgurations share many profiles, in fact my original
goal was to avoid to rewrite the same Nix derivations for my
different machines.
** Commands
Here I describe my most used commands.
All the commands are executed inside the Flake's development shell.
To enter in this shell is sufficent to ~cd~ in the folder (if you use ~direnv~) or run ~nix develop~.
Here I describe my most used commands. All the commands are executed
inside the Flake's development shell. To enter in this shell is
sufficent to ~cd~ in the folder (if you use ~direnv~) or run ~nix
develop~.
*** Checking
To check that the Nix Flake is [[https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake-check.html#evaluation-checks][well defined]]:
#+begin_src shell
nix flake check
nix flake check
#+end_src
*** Building
#+begin_src shell
nix -Lv build ".#nixosConfigurations.<host>.config.system.build.toplevel"
#+end_src
nix -Lv build
".#nixosConfigurations.<host>.config.system.build.toplevel" #+end_src
Where ~<host>~ is the hostname e.g. ~pc~.
*** Testing new config
#+begin_src shell
bud rebuild <host> test
bud rebuild <host> test
#+end_src
Where ~<host>~ is the hostname e.g. ~pc~.
@ -37,7 +41,7 @@ Where ~<host>~ is the hostname e.g. ~pc~.
*** Switching
#+begin_src shell
bud rebuild <host> switch
bud rebuild <host> switch
#+end_src
Where ~<host>~ is the hostname e.g. ~pc~.