No description
Find a file
Guanran Wang acc492a5cf
flake.lock: Update
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/944d338d24a9d043a3f7461c30ee6cfe4f9cca30' (2023-10-27)
  → 'github:nix-community/disko/548962c50b8afad7b8c820c1d6e21dc8394d6e65' (2023-11-04)
• Updated input 'home-manager':
    'github:nix-community/home-manager/8e5416b478e465985eec274bc3a018024435c106' (2023-10-30)
  → 'github:nix-community/home-manager/8765d4e38aa0be53cdeee26f7386173e6c65618d' (2023-11-03)
• Updated input 'hosts':
    'github:StevenBlack/hosts/b05eca9505722abe416b46fd4eb55dda7443da7e' (2023-10-28)
  → 'github:StevenBlack/hosts/88ca3222616ca7a0802d6e071ee320ad9e7e7d6b' (2023-11-03)
• Updated input 'hyprland':
    'github:hyprwm/Hyprland/ab5497a0c9e9269b1036a0bede42cbd0bbfd94b9' (2023-10-30)
  → 'github:hyprwm/Hyprland/3b786419d817a76b834d5e010afbed4d0cf98804' (2023-11-05)
• Updated input 'hyprland-plugins':
    'github:hyprwm/hyprland-plugins/874deb29807259d19da134af33bd44357a642493' (2023-11-04)
  → 'github:hyprwm/hyprland-plugins/92c567ce9c64e230e3db95f03864f6bc98ecd621' (2023-11-04)
• Updated input 'metacubexd':
    'github:MetaCubeX/metacubexd/62cf8c61f92653069e84dc8c77d9afb64f5213be' (2023-10-30)
  → 'github:MetaCubeX/metacubexd/f787e4c1c1dc8ea7812858574c8df8e6ba591093' (2023-11-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0cbe9f69c234a7700596e943bfae7ef27a31b735' (2023-10-29)
  → 'github:NixOS/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/621f51253edffa1d6f08d5fce4f08614c852d17e' (2023-11-02)
  → 'github:NixOS/nixpkgs/78f3a4ae19f0e99d5323dd2e3853916b8ee4afee' (2023-11-04)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/321affd863e3e4e669990a1db5fdabef98387b95' (2023-11-03)
  → 'github:oxalica/rust-overlay/0e45a692657ec4b6993e65dd38b62b0d1459664c' (2023-11-05)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/632c3161a6cc24142c8e3f5529f5d81042571165' (2023-10-29)
  → 'github:Mic92/sops-nix/5bc2cde6e53241e7df0e8f5df5872223983efa72' (2023-11-05)
• Updated input 'xdph':
    'github:hyprwm/xdg-desktop-portal-hyprland/081b36add935e5c099ae82d6a4db4f3740aad711' (2023-11-03)
  → 'github:hyprwm/xdg-desktop-portal-hyprland/b2fc1110963fa583ad5348a9dc0101bd58ceac7a' (2023-11-05)
2023-11-05 16:41:39 +08:00
darwin darwin: fix path 2023-11-04 22:03:00 +08:00
flakes flake: format everything using alejandra 2023-11-04 18:14:42 +08:00
machines flake: format everything using alejandra 2023-11-04 18:14:42 +08:00
nixos nixos: move font packages to home-manager 2023-11-04 20:49:54 +08:00
users/guanranwang home: configure swayidle 2023-11-05 15:24:13 +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 flake: format everything using alejandra 2023-11-04 18:14:42 +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>`