[Nix-dev] What about adding pkgs : to nixos-hardware-scan and fileSystems attr ?

Marc Weber marco-oweber at gmx.de
Mon Oct 6 15:40:34 CEST 2008


Today I've tried to install nixos within qemu to start work on tuxonice
again..
However I forgot about fileSystems (so what about adding a placeholder ?)
and what about using the new syntax pkgs : config : ?
Or should we replace it by
args; where args contains config and pkgs once and forall?

diff --git a/installer/nixos-hardware-scan.pl
b/installer/nixos-hardware-scan.pl
index e3277fa..4f4322f 100644
--- a/installer/nixos-hardware-scan.pl
+++ b/installer/nixos-hardware-scan.pl
@@ -204,7 +204,7 @@ my $kernelModules = toNixExpr(removeDups
@kernelModules);
 ## This is a generated file.  Do not modify!
 ## Make changes to /etc/nixos/configuration.nix instead.
 print <<EOF ;
-{
+pkgs : config : {
   boot = {
     initrd = {
       extraKernelModules = [ $initrdKernelModules ];
@@ -212,6 +212,13 @@ print <<EOF ;
     kernelModules = [ $kernelModules ];
   };
 
+  fileSystems = [
+    { device = # "/dev/sda1"; # << adjust and uncomment this option
+      mountPoint = "/";
+    # neededForBoot=true; # is automatically set for mountPoint "/"
+    }
+  ];
+
   nix = {
     maxJobs = $cpus;
   };





More information about the nix-dev mailing list