Skip to content

Latest commit

 

History

History
executable file
·
139 lines (100 loc) · 4.77 KB

resources.md

File metadata and controls

executable file
·
139 lines (100 loc) · 4.77 KB

open the (infra) sops file

sudo --preserve-env sops $NIXOS_CONFIG_PATH/secrets/

# not in direnv
env SOPS_AGE_KEY_FILE=/persist/sops-nix-key.txt sudo --preserve-env sops $NIXOS_CONFIG_PATH/secrets/

# without sudo
su --preserve-environment -c "env SOPS_AGE_KEY_FILE=/persist/sops-nix-key.txt 
sops $NIXOS_CONFIG_PATH/secrets/infra.yaml"

build image

cd $NIXOS_CONFIG_PATH

sudo mkdir /ventoy

# eg /dev/sdb1
sudo mount /dev/---disc-name--- /ventoy

# build image
sudo nix build .#images.minimal-installer

# move iso to usb
cp -rl $(eza --sort changed result/iso/*.iso | tail -n1) /ventoy

fetch official iso(s)

function downloadfile {
    # resolve url redirect to get a more specific link
    local url=$(curl -ils -o /dev/null -w %{url_effective} \"$1\")
    
    # curl said url and use the filename of it
    curl -jol \"$url\"
}

function downloadofficialiso {
    downloadfile \ 
    "https://channels.nixos.org/nixos-24.05/latest-nixos-$1-x86_64-linux.iso"
}

downloadofficialiso minimal 
downloadofficialiso gnome 
downloadofficialiso plasma6 

get logs

systemctl --user status 
journalctl -xeu home-manager-upidapi.service

format traces

# replace the folowing with something else
<code>
<primop>
<primop-app>
<lambda>
«repeated»

YouTube

vimjoyer

Other people

  • adv := is it advanced?
  • imp := impermanence
  • big := is there a lot?
  • h-m := home manager
  • flk := flakes?
  • flp := flake parts?
  • sps := sops

Repo overviews

User Comments adv imp h-m flk sps
jakehamilton modules [ ] [ ] [x] [ ] [ ]
lokegustafsson nix opts [ ] [ ] [ ] [ ] [ ]
ErrorNoInternet nixvim [ ] [ ] [x] [x] [ ]
nobbz [x] [ ] [x] [x] [-]
sebastianstork [ ] [ ] [x] [x] [x]
fufexan [x] [ ] [x] [x] [-]
mic92 dev shell [x] [ ] [x] [x] [x]
workflow [ ] [ ] [x] [x] [ ]
notohh [ ] [ ] [x] [x] [x]
adamcstephens [x] [ ] [x] [x] [ ]
vimjoyer [ ] [x] [x] [x] [x]
LibrePhoenix sops, auto-install [x] [ ] [x] [x] [x]
misterio77 [x] [x] [x] [x] [x]
NotAShelf well organised, huge [x] [x] [x] [x] [x]

use to search some repos i trust for examples

good = """\
https://github.com/nobbz/nixos-config
https://github.com/fufexan/dotfiles
https://github.com/mitchellh/nixos-config
https://github.com/mic92/dotfiles
https://github.com/workflow/dotfiles
https://github.com/notohh/snowflake
https://github.com/misterio77/nix-config


https://github.com/hlissner/dotfiles

https://github.com/gvolpe/nix-config


https://github.com/notashelf/nyx\
"""


good = [
    x.strip()[len("https://github.com/"):] 
    for x in good.split("\n") 
    if x.strip() != ""
]

repos = " OR ".join([f"repo:{x}" for x in good])

print(f"lang:nix ({repos})")

# lang:nix (repo:nobbz/nixos-config OR repo:fufexan/dotfiles OR repo:mitchellh/nixos-config OR repo:mic92/dotfiles OR repo:workflow/dotfiles OR repo:notohh/snowflake OR repo:misterio77/nix-config OR repo:hlissner/dotfiles OR repo:gvolpe/nix-config OR repo:notashelf/nyx)