No description
Find a file
2024-06-29 11:18:11 +08:00
.helix repo: set helix's default formatter 2023-12-27 20:02:25 +08:00
darwin home: alacritty -> foot 2024-06-23 22:56:15 +08:00
home fixup! home/{firefox,thunderbird}: remove ifd 2024-06-28 08:52:44 +08:00
hosts flake: update lock file 2024-06-29 11:18:11 +08:00
nixos home: avoid xresources 2024-06-29 06:45:12 +08:00
overlays overlays: drop prismlauncher offline mode 2024-06-23 22:56:15 +08:00
pkgs scripts: runCommandNoCCLocal -> runCommandLocal 2024-06-23 22:56:15 +08:00
.editorconfig repo: add editorconfig && format 2024-02-16 01:04:01 +08:00
.gitattributes nixos: clash-meta-client: refactor 2023-12-31 20:29:48 +08:00
.gitignore repo: add editorconfig && format 2024-02-16 01:04:01 +08:00
.sops.yaml treewide: update 2024-05-24 01:52:24 +08:00
.typos.toml repo/typos: update 2024-06-16 02:25:22 +08:00
flake.lock flake: update lock file 2024-06-29 11:18:11 +08:00
flake.nix flake: add devShells 2024-06-23 22:56:14 +08:00
LICENSE repo: add license 2024-01-20 22:26:52 +08:00
README.md docs/readme: add nix-on-droid, cleanup 2024-03-20 23:36:57 +08:00
secrets.yaml nixos: use cloudflare cdn 2024-06-23 15:53:31 +08:00
treefmt.nix darwin/home: use @pperanich's trampolineApps script 2024-03-13 21:10:23 +08:00

nix{os,-darwin,-on-droid} config

It just works™

Structure

Any directory or file that is prefixed with an _ (underscore) means that the whole directory/file is unused in this repository.

 .
│   # Darwin configuration is not actively maintained and sometimes it might
│   # break.
├── 󱂵 home # <-- See here for dotfiles!
├──  darwin
├──  nixos
│  ├──  modules
│  └──  profiles
│
│   # Personal packages, please see github:Guanran928/nur-packages instead
├──  pkgs
├──  hosts
├──  overlays
│
├──  flake.nix
├──  flake.lock
│
└──  README.md

Installation:

Please don't.

NixOS:

  1. Clone this repository

    $ git clone https://github.com/Guanran928/flake.git

  2. Add your device's hardware configuration in ./flake.nix and ./hosts/<hostname>

  3. Install NixOS

    $ nixos-install --flake <this flake's directory>#<hostname>

macOS:

  1. Install Nix using Determinate Nix Installer

    $ curl --proto '=https' --tlsv1.2 -fsSL https://install.determinate.systems/nix | sh -s -- install

  2. Clone this repository

    $ git clone https://github.com/Guanran928/flake.git

  3. Add your device's hardware configuration in ./flake.nix and ./hosts/<hostname>

  4. Install nix-darwin

    $ nix run nix-darwin -- --flake <this flake's directory>#<hostname> switch

Nix-On-Droid:

  1. Install nix-on-droid and bootstrap with Flakes

    F-Droid: https://f-droid.org/packages/com.termux.nix

  2. Clone this repository

    $ nix shell nixpkgs#git $ git clone https://github.com/Guanran928/flake.git

  3. Add your device's configuration in ./flake.nix and ./hosts/<hostname>

  4. Setup Nix-On-Droid

    $ nix-on-droid --flake <this flake's directory>#<hostname>switch