Skip to content

bbigras/nix-config

Folders and files

NameName
Last commit message
Last commit date
Mar 11, 2025
Feb 8, 2025
Mar 21, 2025
Jan 4, 2025
Jan 4, 2025
Mar 20, 2025
Mar 15, 2025
Dec 22, 2020
Mar 20, 2025
Jun 28, 2022
Feb 10, 2025
Mar 21, 2025
Jan 13, 2025
Apr 17, 2024
May 8, 2021
Jul 24, 2020
Mar 18, 2025
May 2, 2024
Jul 21, 2020
Dec 2, 2024
Jan 4, 2025
Mar 24, 2025
Mar 18, 2025
Sep 13, 2020
Jan 4, 2025
Jul 3, 2024

Repository files navigation

nix-config built with nix ci

WIP

Features

  • flakes
  • deploy with deploy-rs
  • use the zen Linux kernel
  • use nixos-hardware
  • use srvos
  • Full disk encryption on laptop
  • emacs-init module for home-manager. See users/bbigras/dev/emacs.nix
  • overlays
    • emacs-overlay
    • nur
  • split-dns with systemd-resolved (might be set in my privates files)
  • tailscale

This is heavily based on https://github.com/lovesegfault/nix-config. Many files were copied directly from that repo.

Note that the license should include lovesegfault's copyright on many files. Not sure how to sort that yet.

Build one host

nix build .#hosts.desktop --impure

Deploy one host

deploy -s .#pixel6 -- --impure

nix-on-droid (first time)

On the phone:

nix-shell -p openssh -p which

# get user and group id and put it in hosts/pixel6/default.nix
id

ssh-keygen -q -N "" -t ed25519 -f ~/ssh_host_ed25519_key

cat <<EOF > tmp-sshd
HostKey ~/ssh_host_ed25519_key
Port 8022
EOF

mkdir -p ~/.ssh
cat <<EOF > ~/.ssh/authorized_keys
**my key**
EOF

# start sshd server to be able to deploy from desktop with deploy-rs
`which sshd` -dD -f ~/tmp-sshd