feat: remove luks config from hardware/base.nix

This commit is contained in:
Felix Schröter 2020-09-07 12:50:29 +02:00
parent 4f8f77441d
commit 9bb9782ec6
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
2 changed files with 8 additions and 6 deletions

View file

@ -5,12 +5,6 @@
./planck.nix ./planck.nix
]; ];
boot.initrd.luks.devices = {
root = {
device = "/dev/disk/by-partlabel/nixos";
allowDiscards = true;
};
};
boot.supportedFilesystems = [ "btrfs" ]; boot.supportedFilesystems = [ "btrfs" ];
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View file

@ -11,6 +11,14 @@
./virtualisation/docker.nix ./virtualisation/docker.nix
]; ];
# replace with regenerated hardware-configuration.nix
boot.initrd.luks.devices = {
enc = {
device = "/dev/disk/by-partlabel/nixos";
allowDiscards = true;
};
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
networking.hostName = "pilot1-nixos"; # Define your hostname. networking.hostName = "pilot1-nixos"; # Define your hostname.