From 547306d8924961814cab2c65be53457f715c2454 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 10 Dec 2015 01:48:12 +0100 Subject: machines: Add a new managed machine "notsure". I've added a "managed" namespace here, which should include all machines that are not my own but I manage for other people. Signed-off-by: aszlig --- machines/aszlig/managed/notsure.nix | 88 +++++++++++++++++++++++++++++++++++++ machines/default.nix | 3 ++ 2 files changed, 91 insertions(+) create mode 100644 machines/aszlig/managed/notsure.nix (limited to 'machines') diff --git a/machines/aszlig/managed/notsure.nix b/machines/aszlig/managed/notsure.nix new file mode 100644 index 00000000..910010e3 --- /dev/null +++ b/machines/aszlig/managed/notsure.nix @@ -0,0 +1,88 @@ +{ pkgs, lib, ... }: + +let + rootUUID = "ata-WDC_WD7500BPVT-22HXZT3_WD-WX71A9124879"; + +in { + boot = { + initrd.availableKernelModules = [ "ehci_pci" "ahci" ]; + kernelPackages = pkgs.linuxPackages_latest; + loader.grub.enable = true; + loader.grub.version = 2; + loader.grub.device = "/dev/disk/by-id/${rootUUID}"; + }; + + fileSystems."/" = { + label = "root"; + fsType = "btrfs"; + options = "rw,space_cache,relatime"; + }; + + hardware = { + enableAllFirmware = true; + opengl.s3tcSupport = true; + pulseaudio.enable = true; + }; + + networking = { + firewall.enable = false; + hostName = "notsure"; + networkmanager.enable = true; + }; + + nix.maxJobs = 2; + + nixpkgs.config = { + allowUnfree = true; + chromium.enablePepperFlash = true; + }; + + environment.systemPackages = with pkgs; [ + chromium + file + gajim + gimp + git + htop + libreoffice + miro + mpv + opentyrian + pavucontrol + pulseaudioFull + samba + skype + thunderbird + vuizvui.tomahawk + wine + xpdf + youtubeDL + ]; + + i18n = { + consoleFont = "lat9w-16"; + consoleKeyMap = "de"; + defaultLocale = "en_US.UTF-8"; + }; + + services = { + deluge.enable = true; + printing.enable = true; + tlp.enable = true; + + xserver = { + enable = true; + layout = "de"; + xkbOptions = "eurosign:e"; + + displayManager.kdm.enable = true; + desktopManager.kde5.enable = true; + }; + }; + + swapDevices = lib.singleton { label = "swap"; }; + + time.timeZone = "Europe/Berlin"; + + vuizvui.user.aszlig.programs.vim.enable = true; +} diff --git a/machines/default.nix b/machines/default.nix index b8986f43..9ec4a207 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -67,6 +67,9 @@ in { arilou = callMachine ./aszlig/arilou.nix; kzerza = callMachine ./aszlig/kzerza.nix; tishtushi = callMachine ./aszlig/tishtushi.nix; + managed = { + notsure = callMachine ./aszlig/managed/notsure.nix; + }; }; labnet = { heinrich = callMachine ./labnet/heinrich.nix; -- cgit 1.4.1