From bb5b9aa09e798593c20b24f6381886baabc7305a Mon Sep 17 00:00:00 2001 From: roxwize Date: Wed, 5 Mar 2025 22:00:10 -0500 Subject: [PATCH] ~ --- README.md | 17 +++++++++++++++++ nixos/hosts/base.nix | 7 +++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 67d99db..1e00e31 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,11 @@ nixos-install --flake './nixos#[hostname]' from my experience the process is more involved, but it ultimately boils down to those three commands above (the first command is only for bootstrapping). youll need to make a configuration for your host which involves creating default configurations with `nixos-generate-config`, copying it to your host's folder in `nixos/hosts/[host]/`, editing it, and then adding it to `flake.nix`. after that you should clone the repo inside of `/home/rae/` on your filesystem +FOOTNOTE: the `r5e` option set is importantm,, for Difnerent thigs,. Its individual segments can be found in: + +- `docker/default.nix` - this file imports other files which use the r5e set to provide options for configuring predefined docker containers without needing to write yucky yaml, that dumbfuck piece of shit I HATE that STUPID Yaml (see the subdirectories' default.nix files for configuration options) +- i lied HAHA, that is all the set is used for, ill probably make it more all-encompassing when the need for such a thing actually arises ... + ## raspberry PI devices [raspberry-pi-nix](https://github.com/nix-community/raspberry-pi-nix) is used to build PI sd card images. have yur lil sd card on hand (paw) and run in the root of the repository: @@ -29,6 +34,18 @@ nix build './nixos#nixosConfigurations.[hostname].config.system.build.sdImage' and then Wait................... output will be in `result/` NYA!! +### ermm??? + +O.K., just take the image in `result/sd-image/[whatever]`, decompress it with zstd, then run `dd if=[decompressed image] of=[sd card device WITHOUT partition number] status=progress` + +the system will automatically resize the root partition to match the size of the SD card, and from there any changes in post should likely be made over ssh... + +```sh +nixos-rebuild switch --flake './nixos#[hostname]' --target-host root@[hostname] +``` + +ssh isnt automatically setup in a way that lets you do this from the start, you should define it in your host configuration beforehand. near has a decent example of this that you can look over if yu want... + # usage the system should boot into openbox and from there you'll have your statusbar and a lot of keybinds to learn x3 diff --git a/nixos/hosts/base.nix b/nixos/hosts/base.nix index 5060f57..125adb0 100644 --- a/nixos/hosts/base.nix +++ b/nixos/hosts/base.nix @@ -2,6 +2,13 @@ nix.settings = { experimental-features = [ "nix-command" "flakes" ]; trusted-users = [ "root" "rae" ]; + substituters = [ + "https://nix-community.cachix.org" + "https://cache.nixos.org/" + ]; + trusted-public-keys = [ + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; }; nixpkgs = { config.allowUnfree = true;