https://github.com/deciduously/nixos-config
My NixOS configuration
https://github.com/deciduously/nixos-config
Last synced: about 1 year ago
JSON representation
My NixOS configuration
- Host: GitHub
- URL: https://github.com/deciduously/nixos-config
- Owner: deciduously
- Created: 2021-10-01T22:28:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-11T19:41:45.000Z (about 4 years ago)
- Last Synced: 2025-04-24T01:07:18.452Z (about 1 year ago)
- Language: Shell
- Size: 229 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Taken from [@nitsky](https://github.com/nitsky/config)
Assuming existing EFI partitiion with Windows installed at `/dev/nvme0n1p1`. Windows C drive is at `/dev/nvme0n1p3`, and a reserved MS partition lives at `/dev/nvme0n1p2`. Set up `/dev/nvme0n1p4` like this:
```
$ sudo cryptsetup luksFormat /dev/nvme0n1p4
$ sudo cryptsetup open /dev/nvme0n1p4 crypt
$ sudo pvcreate /dev/mapper/crypt
$ sudo vgcreate vg /dev/mapper/crypt
$ sudo lvcreate -L 64G vg -n swap
$ sudo lvcreate -L 128G vg -n root
$ sudo lvcreate -l 100%FREE vg -n home
$ sudo mkswap /dev/vg/swap
$ sudo swapon /dev/vg/swap
$ sudo mkfs.btrfs /dev/vg/root
$ sudo mkfs.btrfs /dev/vg/home
$ sudo mkdir /mnt
$ sudo mount /dev/vg/root /mnt
$ sudo mkdir /mnt/boot
$ sudo mount /dev/nvme0n1p1 /mnt/boot/
$ sudo mkdir /mnt/home
$ sudo mount /dev/vg/home /mnt/home
```
Then, install from the flake.
```
$ nix-shell -p nixUnstable git
$ sudo nixos-install --impure --root /mnt --flake github:deciduously/nixos-config#shepard
```
Reboot into new installation. Then, to get the flake locally:
```
$ cd ~
$ git clone git@github.com:deciduously/nixos-config.git
```
Use the included scripts to update/rebuild/clean.
## Notes
* If `sddm` fails to load after a Plasma update, try clearing the cache: `rm -rf /var/lib/sddm/.cache/sddm-greeter/qmlcache`. Sudo didn't cut it for me, I needed to switch to root.
* needed to run `sudo git config --global --add safe.directory $PWD` to rebuild on 4/26 per https://github.com/NixOS/nixpkgs/issues/169193