No description
Find a file
2023-11-09 12:07:37 +08:00
darwin darwin: fix path 2023-11-04 22:03:00 +08:00
flakes flake: move flake's substituter to ./flakes/* 2023-11-05 21:14:23 +08:00
machines nixos: move machines/nixos/hardware/accessories to nixos/presets/desktop/ 2023-11-06 12:23:08 +08:00
nixos nixos,dns: types.str -> types.enum 2023-11-09 12:07:37 +08:00
users/guanranwang nixos: enable shell in user configuration 2023-11-09 11:51:35 +08:00
.gitattributes secrets: add clear text differ to git 2023-09-23 07:28:05 +08:00
.sops.yaml initial commit 2023-09-19 08:17:43 +08:00
flake.lock flake.lock: Update 2023-11-05 16:41:39 +08:00
flake.nix nixos: add myFlake.nixos.boot.{silentboot,noLoaderMenu} 2023-11-09 11:55:14 +08:00
README.md readme: add machine and user 2023-11-03 23:04:38 +08:00

nix{os,-darwin} config

It just works™

Infomation

  • Flakes: Yes
  • Home Manager: Yes

Machine-specific (81fw-nixos)

  • File system: Btrfs
  • System encryption: Yes (LUKS)

User-specific (me)

  • Secrets: sops-nix
  • Display server: Wayland
  • Desktop-environment: Sway

Structure

 .
├──  darwin                          # System configuration
├──  nixos
│
├──  flakes                          # Import-able Flakes
│  ├──  darwin
│  └──  nixos
│
├──  machines                        # Hardware configuration
│  ├──  darwin
│  └──  nixos
│     ├──  81fw-lenovo-legion-y7000  ### Model
│     │  ├──  hardware.nix           #### Model-specific hardware configuration
│     │  └──  machine-1              #### Machine-specific hardware configuration
│     │
│     └───  hardware                 ### Reusable hardware configuration
│        ├──  cpu
│        ├──  gpu
│        └──  ...
│
├──  users
│  └──  guanranwang                  ## Your user
│     │
│     ├──  darwin                    ### (User-specific) System configuration
│     ├──  nixos
│     │
│     ├──  home-manager              ### (User-specific) Home Manager configuration
│     │  ├──  darwin
│     │  └──  nixos
│     │
│     └──  secrets                   ### User's secrets managed through sops-nix
│
├──  flake.nix
├──  flake.lock
│
└──  README.md

Installation:

Please don't.

Clone this repository
`$ git clone https://github.com/Guanran928/flake.git`
Add your device's hardware configuration in `./machines` and `./flake.nix`
Install NixOS
`$ nixos-install --flake <this flake's directory>#<hostname>`