about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2012-11-26 02:22:08 +0100
committeraszlig <aszlig@redmoonstudios.org>2012-11-26 02:22:08 +0100
commite29285fa9725f184be408e4252db6da4872612be (patch)
tree6858cfad102d1dccb7ca91bc27c875c994fa8570
parent12499d794c10750a912237cd668a21dc82639a12 (diff)
dnyarri/mmrnmhrm: Update NixOS configurations.
This is a somewhat messy change, as I experimented around with the new audio
setup, had a filesystem corruption in-between, checked if the memory is okay,
repaired the filesystem, added NIX_OTHER_STORES, found out that it doesn't work
so well, as we might have impurities, proceeded with the audio stuff.

So, that's how both configurations are now and I still need to clean up this
configuration mess by having one single configuration "library" which is shared
by both machines.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--dnyarri.nix57
-rw-r--r--mmrnmhrm.nix74
2 files changed, 103 insertions, 28 deletions
diff --git a/dnyarri.nix b/dnyarri.nix
index aa2f3b44..aab27167 100644
--- a/dnyarri.nix
+++ b/dnyarri.nix
@@ -50,8 +50,8 @@
       version = "3.7.0-rc6";
       src = pkgs.fetchgit {
         url = /home/aszlig/linux;
-        rev = "f4a75d2eb7b1e2206094b901be09adb31ba63681";
-        sha256 = "1r3y3z79yw8pcxrm6nc8iacdy0w13favgd53ra0w6hn1186vmg21";
+        rev = "f60c7ab5c56292820f96d8fcb21124c53ae02d0e";
+        sha256 = "0zy6p14qjnk3dl3hy725m9mlavdklq2zjk64jk75ajmfygbz2q56";
       };
       configfile = pkgs.substituteAll {
         src = ./kernel.config;
@@ -74,8 +74,6 @@
 
     cleanTmpDir = true;
 
-    supportedFilesystems = [ "xfs" ];
-
     initrd = {
       mdadmConf = ''
         ARRAY /dev/md0 metadata=1.2 UUID=f5e9de04:89efc509:4e184fcc:166b0b67
@@ -88,14 +86,14 @@
           preLVM = true;
         }
       ];
-
-      inherit supportedFilesystems;
     };
 
     loader.grub = {
       enable = true;
       version = 2;
 
+      memtest86 = true;
+
       devices = [
         "/dev/disk/by-id/ata-ST31500541AS_5XW0AMNH"
         "/dev/disk/by-id/ata-ST31500541AS_6XW0M217"
@@ -118,8 +116,30 @@
     wireless.enable = false;
   };
 
-  fileSystems."/boot".label = "boot";
-  fileSystems."/".device = "/dev/shofixti/root";
+  fileSystems = {
+    "/boot" = {
+      label = "boot";
+      fsType = "ext2";
+    };
+    "/" = {
+      device = "/dev/shofixti/root";
+      fsType = "xfs";
+    };
+    /*
+    "/run/nix/remote-stores/mmrnmhrm/nix" = {
+      device = "root@mmrnmhrm:/nix";
+      fsType = "sshfs";
+      noCheck = true;
+      options = pkgs.lib.concatStringsSep "," [
+        "comment=x-systemd.automount"
+        "compression=yes"
+        "ssh_command=${pkgs.openssh}/bin/ssh"
+        "Ciphers=arcfour"
+        "IdentityFile=/root/.ssh/id_buildfarm"
+      ];
+    };
+    */
+  };
 
   fonts = {
     enableCoreFonts = true;
@@ -147,9 +167,18 @@
   services = {
     openssh = {
       enable = true;
-      permitRootLogin = "no";
+      permitRootLogin = "without-password";
     };
 
+    /*
+    nfs.server = {
+      enable = true;
+      exports = ''
+        /nix mmrnmhrm.redmoon(ro,no_root_squash)
+      '';
+    };
+    */
+
     /* mingetty.ttys = [
       "tty1" "tty2" "tty3" "tty4" "tty5" "tty6"
       "tty8" "tty9" "tty10" "tty11" "tty12"
@@ -185,6 +214,12 @@
 
       desktopManager.default = "none";
 
+      displayManager.sessionCommands = ''
+        ${pkgs.synergy}/bin/synergyc mmrnmhrm
+        # work around synergy bug:
+        ${pkgs.xorg.setxkbmap}/bin/setxkbmap dvorak
+      '';
+
       displayManager.slim.theme = pkgs.fetchurl {
         url = "mirror://sourceforge/slim.berlios/slim-fingerprint.tar.gz";
         sha256 = "0i1igl4iciml3d46n5hl3bbmqsdzzv56akw2l36i9f779kw07ds8";
@@ -220,6 +255,10 @@
     };
   };
 
+  system.fsPackages = with pkgs; [
+    sshfsFuse
+  ];
+
   # broken -> chroot build -> FIXME
   #system.copySystemConfiguration = true;
 
diff --git a/mmrnmhrm.nix b/mmrnmhrm.nix
index 38043eb2..759ef6a8 100644
--- a/mmrnmhrm.nix
+++ b/mmrnmhrm.nix
@@ -11,6 +11,11 @@
     extraOptions = ''
       build-cores = 0
     '';
+    /*
+    buildMachines = [
+      { hostName = "
+    ];
+    */
   };
 
   boot = let
@@ -18,13 +23,13 @@
       version = "3.7.0-rc6";
       src = pkgs.fetchgit {
         url = /home/aszlig/linux;
-        rev = "f4a75d2eb7b1e2206094b901be09adb31ba63681";
-        sha256 = "1r3y3z79yw8pcxrm6nc8iacdy0w13favgd53ra0w6hn1186vmg21";
+        rev = "c56dcc86b9a0a140ae0b35abb4b2ecd1b45e8bda";
+        sha256 = "1km8dgfgdcgngcdnj5jzy98zyn7mrfryygnrp2wvzk5vi53wksmx";
       };
       configfile = pkgs.fetchurl {
         name = "aszlig.kconf";
         url = "file:///home/aszlig/linux/.config";
-        md5 = "6e533e2e9b6ce0632678b83da093d22e";
+        md5 = "0c632194689797846127b47fa135c516";
       };
       allowImportFromDerivation = true; # XXX
     };
@@ -33,8 +38,6 @@
 
     cleanTmpDir = true;
 
-    supportedFilesystems = [ "btrfs" ];
-
     initrd = {
       luks.enable = true;
       luks.devices = [
@@ -43,8 +46,6 @@
           preLVM = true;
         }
       ];
-
-      inherit supportedFilesystems;
     };
 
     loader.grub = {
@@ -59,7 +60,10 @@
 
   hardware = {
     cpu.intel.updateMicrocode = true;
-    pulseaudio.enable = false;
+    pulseaudio.enable = true;
+    pulseaudio.package = pkgs.pulseaudio.override {
+      useSystemd = true;
+    };
   };
 
   users.defaultUserShell = "/var/run/current-system/sw/bin/zsh";
@@ -69,16 +73,34 @@
     wireless.enable = false;
   };
 
-  fileSystems."/boot".label = "boot";
-  fileSystems."/" = {
-    device = "/dev/system/root";
-    options = pkgs.lib.concatStringsSep "," [
-      "autodefrag"
-      "space_cache"
-      "inode_cache"
-      "compress=lzo"
-      "noatime"
-    ];
+  fileSystems = {
+    "/boot" = {
+      label = "boot";
+      fsType = "ext2";
+    };
+    "/" = {
+      device = "/dev/system/root";
+      fsType = "btrfs";
+      options = pkgs.lib.concatStringsSep "," [
+        "autodefrag"
+        "space_cache"
+        "inode_cache"
+        "compress=lzo"
+        "noatime"
+      ];
+    };
+    /*
+    "/run/nix/remote-stores/dnyarri/nix" = {
+      device = "root@dnyarri:/nix";
+      fsType = "sshfs";
+      options = pkgs.lib.concatStringsSep "," [
+        "compression=yes"
+        "ssh_command=${pkgs.openssh}/bin/ssh"
+        "Ciphers=arcfour"
+        "IdentityFile=/root/.ssh/id_buildfarm"
+      ];
+    };
+    */
   };
 
   fonts = {
@@ -102,8 +124,18 @@
   services = {
     openssh = {
       enable = true;
-      permitRootLogin = "no";
+      permitRootLogin = "without-password";
+    };
+
+    /*
+    nfs.server = {
+      enable = true;
+      exports = ''
+        /nix dnyarri.redmoon(ro,no_root_squash)
+        /nix/var/nix/db dnyarri.redmoon(rw,no_root_squash)
+      '';
     };
+    */
 
     /* mingetty.ttys = [
       "tty1" "tty2" "tty3" "tty4" "tty5" "tty6"
@@ -175,6 +207,10 @@
     };
   };
 
+  system.fsPackages = with pkgs; [
+    sshfsFuse
+  ];
+
   # broken -> chroot build -> FIXME
   #system.copySystemConfiguration = true;