From ecda312786cbc3a313688671c28e4de7f0abb0d7 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 15 Feb 2022 15:45:24 +0100 Subject: [PATCH] Restructure to use flakes --- configuration.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 97d2e38..bf4a766 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,11 +1,11 @@ { config, pkgs, ... }: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration-current.nix - ./role-current.nix - ]; + #imports = + #[ # Include the results of the hardware scan. + #./hardware-configuration-current.nix + #./role-current.nix + #]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions @@ -13,5 +13,15 @@ # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "21.11"; # Did you read the comment? + #system.stateVersion = "21.11"; # Did you read the comment? + + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.initrd.luks.devices.root = { + device = "/dev/nvme0n1p2"; + preLVM = true; + }; + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; + environment.systemPackages = with pkgs; [ vim git ]; }