about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-27 14:18:48 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-27 14:18:48 +0100
commitc3a53309e286bc373d736e547f26e4757fff4914 (patch)
tree04f35ec1ae594f40bc595824bb08d3c16fb9f024 /machines
parentae679d33f6d812fd16049e5c06139d309386c38d (diff)
machines/aszlig: Add managed machine "haenk"
Another machine I manage for someone else, currently nothing too fancy
or complex here yet, except that it's very old hardware.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r--machines/aszlig/managed/haenk.nix78
-rw-r--r--machines/default.nix1
2 files changed, 79 insertions, 0 deletions
diff --git a/machines/aszlig/managed/haenk.nix b/machines/aszlig/managed/haenk.nix
new file mode 100644
index 00000000..b864f818
--- /dev/null
+++ b/machines/aszlig/managed/haenk.nix
@@ -0,0 +1,78 @@
+{ config, pkgs, lib, ... }:
+
+{
+  boot.initrd.availableKernelModules = [
+    "pata_sis" "ohci_pci" "ehci_pci" "firewire_ohci" "sd_mod" "sr_mod"
+  ];
+  boot.kernelPackages = pkgs.linuxPackages_latest;
+  boot.loader.grub = {
+    enable = true;
+    version = 2;
+    device = "/dev/disk/by-id/ata-FUJITSU_MHV2080AH_NT61T782VR71";
+  };
+
+  environment.systemPackages = with pkgs; [
+    chromium figlet gajim gimp htop inkscape kde5.oxygen-icons5 libreoffice mosh
+    mpv pciutils skype vim_configurable vlc vuizvui.greybird-xfce-theme
+    vuizvui.tomahawk wget youtubeDL
+  ];
+
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/df1cab2d-cbca-4fc5-af6a-c0580c4db1b7";
+    fsType = "btrfs";
+  };
+
+  swapDevices = lib.singleton {
+    device = "/dev/disk/by-uuid/b5ea0ae8-20c6-43dd-ad97-6d8c783dac02";
+  };
+
+  hardware.cpu.amd.updateMicrocode = true;
+
+  hardware.firmware = lib.singleton (pkgs.runCommand "ipw2x00-firmware" {} ''
+    mkdir -p "$out/lib/firmware"
+    cp "${pkgs.fetchsvn rec {
+      name = "ipw2x00-${toString rev}";
+      url = "svn://svn.debian.org/kernel/dists/trunk/firmware-nonfree/ipw2x00/";
+      rev = 22942;
+      sha256 = "16jrzqnb1r4aavygp11mh76iqml3xq9xm8j8b18c14dpv08drb55";
+    }}"/*.fw "$out/lib/firmware/"
+  '');
+
+  i18n.consoleKeyMap = "de";
+  i18n.defaultLocale = "en_US.UTF-8";
+
+  networking.hostName = "haenk";
+  networking.firewall.enable = false;
+  networking.wireless.enable = true;
+  networking.useNetworkd = true;
+  networking.enableIntel2200BGFirmware = true;
+
+  nix.maxJobs = 1;
+  nix.useChroot = true;
+  nix.extraOptions = ''
+    auto-optimise-store = true
+  '';
+
+  nixpkgs.config.allowUnfree = true;
+
+  services.openssh.enable = true;
+  services.tlp.enable = true;
+  services.ntp.extraFlags = [ "-G" ];
+
+  services.xserver.enable = true;
+  services.xserver.layout = "de";
+  services.xserver.xkbOptions = "eurosign:e";
+  services.xserver.displayManager.auto.enable = true;
+  services.xserver.displayManager.auto.user = "bla";
+  services.xserver.desktopManager.xfce.enable = true;
+  services.xserver.synaptics.enable = true;
+  services.xserver.wacom.enable = true;
+
+  time.timeZone = "Europe/Berlin";
+
+  users.extraUsers.bla = {
+    isNormalUser = true;
+    uid = 1000;
+    extraGroups = [ "video" "wheel" ];
+  };
+}
diff --git a/machines/default.nix b/machines/default.nix
index 9c5a17a6..60f4a05f 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -10,6 +10,7 @@ in {
     kzerza    = callMachine ./aszlig/kzerza.nix {};
     tishtushi = callMachine ./aszlig/tishtushi.nix {};
     managed = {
+      haenk   = callMachine ./aszlig/managed/haenk.nix {};
       notsure = callMachine ./aszlig/managed/notsure.nix {};
     };
   };