mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-04-03 18:14:15 +00:00
~
This commit is contained in:
parent
c49995771d
commit
bb5b9aa09e
2 changed files with 24 additions and 0 deletions
17
README.md
17
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue