htdocs/resources/nixos/index.gmi
2025-03-31 16:41:54 +01:00

29 lines
672 B
Plaintext

# NixOS:
## setup:
### Change to unstable branch:
```
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
sudo nixos-rebuild switch --upgrade
```
## configuration.nix:
### Auto mounting:
```
fileSystems = {
"/dev/sda1" = {
device = "/dev/sda1"; # The device id of the drive you want to be mounted
# device = "server:/dev/sda1"; # For nfs drives
fsType = "ext4"; # The filesystem of the mounted drive, "auto" by default
# ext4, fat32, nfs, btrfs, etc...
mountPoint = "/mnt"; # Where the drive should be mounted to, a path
};
};
```
### List all NixOS options
```
man configuration.nix
```
=> https://mynixos.com Or use the mynixos resource