Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bbigras/nix-config
My personal nix config
https://github.com/bbigras/nix-config
nix nixos nixos-configuration
Last synced: 8 days ago
JSON representation
My personal nix config
- Host: GitHub
- URL: https://github.com/bbigras/nix-config
- Owner: bbigras
- License: bsd-3-clause
- Created: 2020-07-19T23:54:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T09:10:22.000Z (18 days ago)
- Last Synced: 2024-10-29T09:20:23.689Z (18 days ago)
- Topics: nix, nixos, nixos-configuration
- Language: Nix
- Homepage:
- Size: 7.77 MB
- Stars: 188
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix-config [![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org) [![ci](https://github.com/bbigras/nix-config/actions/workflows/ci.yaml/badge.svg)](https://github.com/bbigras/nix-config/actions/workflows/ci.yaml)
WIP
# Features
- flakes
- deploy with deploy-rs
- use the zen Linux kernel
- use [nixos-hardware](https://github.com/NixOS/nixos-hardware)
- use [srvos](https://github.com/nix-community/srvos)
- Full disk encryption on laptop
- [emacs-init module](https://gitlab.com/rycee/nur-expressions/blob/master/hm-modules/emacs-init.nix) for home-manager. See `users/bbigras/dev/emacs.nix`
- overlays
- emacs-overlay
- nur
- nix-doom-emacs-unstraightened
- split-dns with systemd-resolved (might be set in my privates files)
- tailscaleThis 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
```sh
nix build .#hosts.desktop --impure
```## Deploy one host
```sh
deploy -s .#pixel6 -- --impure
```## nix-on-droid (first time)
On the phone:
```sh
nix-shell -p openssh -p which# get user and group id and put it in hosts/pixel6/default.nix
idssh-keygen -q -N "" -t ed25519 -f ~/ssh_host_ed25519_key
cat < tmp-sshd
HostKey ~/ssh_host_ed25519_key
Port 8022
EOFmkdir -p ~/.ssh
cat < ~/.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
```