No description
Find a file
2024-03-09 12:06:08 +08:00
.helix repo: set helix's default formatter 2023-12-27 20:02:25 +08:00
darwin darwin: use nur 2024-02-27 15:47:00 +08:00
home flake: use treefmt-nix 2024-03-09 10:11:05 +08:00
hosts nixos: clean up unused applications 2024-03-01 04:21:51 +08:00
nixos nixos/core: use dbus-broker && minor tweaks 2024-03-06 06:06:30 +08:00
overlays overlays/sway/1.9: use patches rebased by NickHu 2024-03-09 10:52:22 +08:00
pkgs home/scripts: move to pkgs 2024-03-02 21:05:54 +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 hosts: add blacksteel 2024-02-13 12:01:59 +08:00
.typos.toml treewide: fix typos with crate-ci/typos 2024-02-23 01:03:13 +08:00
flake.lock flake: use treefmt-nix 2024-03-09 10:11:05 +08:00
flake.nix flake: refactor 2024-03-09 12:06:08 +08:00
LICENSE repo: add license 2024-01-20 22:26:52 +08:00
README.md fixup! docs/readme: add darwin installation guide 2024-02-26 14:24:57 +08:00
secrets.yaml secrets/clash: update 2024-02-14 01:56:27 +08:00
treefmt.nix flake: use treefmt-nix 2024-03-09 10:11:05 +08:00

nix{os,-darwin} 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
├──  darwin
├──  nixos
│  ├──  modules
│  └──  profiles
│
├──  hosts
├──  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 -- switch --flake <this flake's directory>#<hostname>