1
0
Fork 0
Go to file
Pratham Patel f9ce13b0ba
add a TODO to self-host flakestry.dev
2024-05-02 20:05:31 +05:30
.github/workflows gh-actions: use my simple qemu-binfmt action for consistency 2024-05-02 00:05:26 +05:30
nixos-configuration add a TODO to self-host flakestry.dev 2024-05-02 20:05:31 +05:30
scripts transition to flakes (squashed commit) 2024-04-07 16:38:52 +05:30
.envrc introduce a justfile to handle builds 2024-05-01 23:35:45 +05:30
.gitignore update .gitignore 2024-04-07 21:00:48 +05:30
README.md README: add badge for the `Continuous Build` GitHub action 2024-04-30 13:12:21 +05:30
flake.lock transition to flakes (squashed commit) 2024-04-07 16:38:52 +05:30
flake.nix introduce a justfile to handle builds 2024-05-01 23:35:45 +05:30
install.sh install.sh: apparently "--print-build-logs" is not an option in `nixos-install` 2024-04-07 19:13:55 +05:30
justfile introduce a justfile to handle builds 2024-05-01 23:35:45 +05:30
tutorials.md add tutorials.md which includes materials to read about NixOS and related stuff 2023-09-02 08:17:43 +05:30

README.md

README

Continuous Build

  1. $hostName is the hostname of a host defined in the nixosHosts set, inside the flake.nix file
  2. $(whoami) should evaluate to the username of a valid user, as defined in the nixosHosts set, inside the flake.nix file

Install NixOS

sudo ./install.sh $targetDrive $hostName

Build a NixOS configuration

nix build .#machines."$hostName"

Standalone installation of home-manager

nix run home-manager/master -- switch --flake .

Build a standalone home-manager configuration

nix build .#homeOf."$(uname -m)-$(uname -s | awk '{print tolower($0)}')"."$(whoami)"

Create a NixOS ISO

nix build .#isos."$(uname -m)"