Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sestrella/nixos-config
https://github.com/sestrella/nixos-config
nixos
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sestrella/nixos-config
- Owner: sestrella
- License: mit
- Created: 2019-04-30T04:34:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-26T17:54:51.000Z (over 3 years ago)
- Last Synced: 2023-08-04T16:21:41.490Z (over 1 year ago)
- Topics: nixos
- Language: Nix
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NixOS config
## Getting Started
Clone the repository:
```sh
git clone https://github.com/sestrella/nixos-config.git
```Copy the hardware configuration:
```sh
cp /etc/nixos/hardware-configuration.nix machine//
```Add a configuration file `default.nix`:
```nix
# machine//default.nix
{ config, pkgs, ... }:{
imports = [
./hardware-configuration.nix
];boot.initrd.luks.devices = {
root = {
device = "/dev/disk/by-uuid/";
preLVM = true;
};
};
}
```Symlink machine configuration:
```sh
ln -s $PWD/machine/ machine/current
```Backup existing `nixos` directory:
```sh
sudo cp /etc/nixos /etc/nixos.backup
```Symlink the directory:
```sh
sudo ln -s $PWD /etc/nixos
```Apply the configuration changes:
```sh
sudo nixos-rebuild switch
```## References
- [Installation of NixOS with encrypted root](https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134)
- [Full Disk Encryption](https://nixos.wiki/wiki/Full_Disk_Encryption)