mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 00:52:39 +02:00
fix: docs & /boot
This commit is contained in:
@@ -67,6 +67,15 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/01CE-1DFD";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0022"
|
||||||
|
"dmask=0022"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# equal to `mount -t tmpfs tmpfs /`
|
# equal to `mount -t tmpfs tmpfs /`
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "tmpfs";
|
device = "tmpfs";
|
||||||
@@ -79,11 +88,6 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/nvme0n1p1";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" = {
|
fileSystems."/nix" = {
|
||||||
inherit device;
|
inherit device;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ Clone this repository:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# enter an shell with git/vim/ssh-agent/gnumake available
|
# enter an shell with git/vim/ssh-agent/gnumake available
|
||||||
nix-shell -p git neovim just --option substituters "https://mirrors.ustc.edu.cn/nix-channels/store"
|
nix-shell -p git neovim --option substituters "https://mirrors.ustc.edu.cn/nix-channels/store"
|
||||||
|
|
||||||
# clone this repository
|
# clone this repository
|
||||||
git clone https://github.com/ryan4yin/nix-config.git
|
git clone https://github.com/ryan4yin/nix-config.git
|
||||||
@@ -287,7 +287,7 @@ cp -r ../nix-config /mnt/etc/nixos
|
|||||||
# sync the disk, unmount the partitions, and close the encrypted device
|
# sync the disk, unmount the partitions, and close the encrypted device
|
||||||
sync
|
sync
|
||||||
swapoff /mnt/swap/swapfile
|
swapoff /mnt/swap/swapfile
|
||||||
umount -R /mnt
|
umount -R /mnt/{nix,tmp,swap,persistent,snapshots,boot}
|
||||||
cryptsetup close /dev/mapper/crypted-nixos
|
cryptsetup close /dev/mapper/crypted-nixos
|
||||||
reboot
|
reboot
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user