An attempt to use the NixOS ecosystem to deploy and provision my home machines.
Activate the nix development environment with
nix develop --impure
Deploy to the machines using task
task viewscreen
the task is a simple wrapper to
deploy .#viewscreen
The target node (viewscreen in this case) should already have NixOS installed.
to run a vm, use:
task viewscreen-vm
At the first launch, login eith the user root and password "test", then run reboot
.
This will load the kodi user services and boot kodi at start.
-
Install NixOS
-
Edit /etc/nixos/configuration.nix to add:
nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = with pkgs; [ git ];
-
sudo nixos-rebuild switch
Then you can clone the repo and enter the dev environment with nix develop
.
When you're ready, apply the configuration with
sudo nixos-rebuild --flake .#configName switch
where configName is the nixosConfiguration
that you want to use on the system.