No description
Find a file
Guanran Wang 155c1cfd21
flake.lock: Update
--commit-lock-file isn't working this time

• Updated input 'crane':
    'github:ipetkov/crane/2c89c36bffac32d8267e719f73b0d06e313ede30' (2023-11-03)
  → 'github:ipetkov/crane/6849911446e18e520970cc6b7a691e64ee90d649' (2023-11-09)
• Updated input 'disko':
    'github:nix-community/disko/548962c50b8afad7b8c820c1d6e21dc8394d6e65' (2023-11-04)
  → 'github:nix-community/disko/2d7d77878c5d70f66f3d676ff66708d8d4f9d7df' (2023-11-12)
• Updated input 'home-manager':
    'github:nix-community/home-manager/8765d4e38aa0be53cdeee26f7386173e6c65618d' (2023-11-03)
  → 'github:nix-community/home-manager/280721186ab75a76537713ec310306f0eba3e407' (2023-11-12)
• Updated input 'hosts':
    'github:StevenBlack/hosts/88ca3222616ca7a0802d6e071ee320ad9e7e7d6b' (2023-11-03)
  → 'github:StevenBlack/hosts/3512f10a51a79383166c4411e3587fc98642ea51' (2023-11-13)
• Updated input 'hyprland':
    'github:hyprwm/Hyprland/3b786419d817a76b834d5e010afbed4d0cf98804' (2023-11-05)
  → 'github:hyprwm/Hyprland/5edb4e4a304bbef1de30a36f7b921ea328d7efc6' (2023-11-13)
• Updated input 'hyprland-plugins':
    'github:hyprwm/hyprland-plugins/92c567ce9c64e230e3db95f03864f6bc98ecd621' (2023-11-04)
  → 'github:hyprwm/hyprland-plugins/9ad145a1021ea48beec65f234137d23e05c30918' (2023-11-12)
• Updated input 'lanzaboote':
    'github:nix-community/lanzaboote/781303ad7ca3e41d38d18b6fd293163a61d4b319' (2023-10-30)
  → 'github:nix-community/lanzaboote/f8d26384363b3b1ed17de4f2d87aaa553e70b466' (2023-11-13)
• Updated input 'nix-darwin':
    'github:LnL7/nix-darwin/afe83cbc2e673b1f08d32dd0f70df599678ff1e7' (2023-10-27)
  → 'github:LnL7/nix-darwin/e67f2bf515343da378c3f82f098df8ca01bccc5f' (2023-11-13)
• Updated input 'nixpak-pkgs':
    'github:nixpak/pkgs/65a857c8bcae181c5b8198dc44d2ed8d81a77a49' (2023-11-09)
  → 'github:nixpak/pkgs/8c3ac0fc5d94441b5ba4448c984438882e1124a5' (2023-11-12)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/85f1ba3e51676fa8cc604a3d863d729026a6b8eb' (2023-11-04)
  → 'github:NixOS/nixpkgs/e44462d6021bfe23dfb24b775cc7c390844f773d' (2023-11-12)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/78f3a4ae19f0e99d5323dd2e3853916b8ee4afee' (2023-11-04)
  → 'github:NixOS/nixpkgs/da4024d0ead5d7820f6bd15147d3fe2a0c0cec73' (2023-11-10)
• Updated input 'pre-commit-hooks-nix':
    'github:cachix/pre-commit-hooks.nix/dec10399e5b56aa95fcd530e0338be72ad6462a0' (2023-11-01)
  → 'github:cachix/pre-commit-hooks.nix/ea758da1a6dcde6dc36db348ed690d09b9864128' (2023-11-06)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/0e45a692657ec4b6993e65dd38b62b0d1459664c' (2023-11-05)
  → 'github:oxalica/rust-overlay/e485313fc485700a9f1f9b8b272ddc0621d08357' (2023-11-14)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/5bc2cde6e53241e7df0e8f5df5872223983efa72' (2023-11-05)
  → 'github:Mic92/sops-nix/0e3a94167dcd10a47b89141f35b2ff9e04b34c46' (2023-11-14)
• Updated input 'spicetify-nix':
    'github:the-argus/spicetify-nix/f395fe14de6d934159d3aa5cc904bbb41f1ea053' (2023-11-08)
  → 'github:the-argus/spicetify-nix/fe3f9e5d3bb5438d6a363f5a0c728ea836217b8f' (2023-11-13)
• Updated input 'wlroots':
    'gitlab:wlroots/wlroots/26eac25d7f7d25a5bfbeb308aa09de618a1384ef' (2023-11-02)
  → 'gitlab:wlroots/wlroots/9e5d0f95f88b6774c81dfa4c8775bf7d0f09bf19' (2023-11-13)
2023-11-15 20:55:36 +08:00
darwin darwin: fix path 2023-11-04 22:03:00 +08:00
flakes nixos,flakes: lib.mkAfter 2023-11-15 20:55:20 +08:00
machines nixos: move machines/nixos/hardware/accessories to nixos/presets/desktop/ 2023-11-06 12:23:08 +08:00
nixos nixos,graphical: move personal stuff to users/guanranwang/nixos 2023-11-15 20:54:57 +08:00
users/guanranwang home,starship: use nerdfont preset from pkgs.starship 2023-11-15 20:55:34 +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-15 20:55:36 +08:00
flake.nix home: sorting 2023-11-15 20:55:27 +08:00
README.md home: sorting 2023-11-15 20:55:27 +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
│     │
│     └──  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>`