Files
azos/README.org
T
2025-12-27 00:21:10 +02:00

107 lines
1.7 KiB
Org Mode
Executable File

* Installation
It's from here:
https://github.com/Misterio77/nix-starter-configs/tree/main/standard
It was probably initialized with this command:
#+begin_src bash
nix flake init -t github:misterio77/nix-starter-config#standard
#+end_src
** VM
#+begin_src shell
nix build .#nixosConfigurations.vm.config.system.build.vm
#+end_src
From https://github.com/nix-community/vagrant-nixos-plugin
Or do this
#+begin_src bash
nix build '.?submodules=1#nixosConfigurations.vm.config.system.build.vm'
#+end_src
** Lauretta
For Lauretta
#+begin_src bash
sudo nixos-rebuild switch --flake '.?submodules=1#lauretta'
#+end_src
Updating azos-core
#+begin_src bash
nix flake lock --update-input azos-core
#+end_src
Updating everything
#+begin_src bash
nix flake update
#+end_src
In order to collect garbage:
#+begin_src bash
sudo nix-collect-garbage --delete-old
#+end_src
** Installing home manager on non-nixos
#+begin_src bash
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
#+end_src
Then we add
#+begin_src bash
$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
#+end_src
as source to BASH. before we install
* usage tips
If you want nix rpel
#+begin_src bash
nix repl
#+end_src
Then in this directory:
#+begin_src nix
:lf .
#+end_src
Then you can tpye:
#+begin_src nix
inputs.nixpkgs.lib
#+end_src
And stuff
If life is giving you trouble with submodules
#+begin_src bash
nix flake lock --update-input azos-core
#+end_src
** Shell
#+begin_src bash
nix develop .#shells.x86_64-linux.debugTexShell
#+end_src
* Tasks
** Things to work out
*** Notebook tempaltes
https://github.com/NixOS/nix/issues/12281