diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-07-23 16:57:10 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-07-23 16:57:10 +0200 |
commit | 50ee1477f1891afd614034f6c0700c6191b0c365 (patch) | |
tree | 5896aca495845443f4040e7ad3be7fdcf67904c4 | |
parent | 065f4bd6d5ad078175cc25aa130ab4d854e80bbc (diff) |
Add new machine "brawndo" to the managed machines
This one more or less shares the same profile as "notsure", but I'm too lazy right now to consolidate and/or modularize everything properly. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r-- | machines/aszlig/managed/brawndo.nix | 104 | ||||
-rw-r--r-- | machines/default.nix | 1 |
2 files changed, 105 insertions, 0 deletions
diff --git a/machines/aszlig/managed/brawndo.nix b/machines/aszlig/managed/brawndo.nix new file mode 100644 index 00000000..21aec718 --- /dev/null +++ b/machines/aszlig/managed/brawndo.nix @@ -0,0 +1,104 @@ +{ pkgs, unfreeAndNonDistributablePkgs, lib, ... }: + +let + mainDisk = "ata-WDC_WD5000LPVX-22V0TT0_WD-WXG1E2559AYH"; + rootUUID = "dbbd5a35-3ac0-4d5a-837d-914457de14a4"; + +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/${mainDisk}"; + }; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/${rootUUID}"; + fsType = "btrfs"; + options = [ "compress=zlib" "space_cache" "noatime" ]; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/534F-980B"; + fsType = "vfat"; + }; + + hardware = { + enableAllFirmware = true; + opengl.s3tcSupport = true; + pulseaudio.enable = true; + }; + + networking = { + firewall.enable = false; + hostName = "brawndo"; + networkmanager.enable = true; + }; + + nix.maxJobs = 4; + + nixpkgs.config = { + chromium.enablePepperFlash = true; + pulseaudio = true; + }; + + environment.systemPackages = with pkgs; [ + chromium + file + gajim + gimp + git + htop + kde5.gwenview + kde5.okular + libreoffice + miro + mpv + opentyrian + pavucontrol + pulseaudioFull + samba + unfreeAndNonDistributablePkgs.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; + printing.drivers = [ pkgs.gutenprint pkgs.hplip pkgs.cups-bjnp ]; + 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"; + + users.users.dwenola = { + isNormalUser = true; + uid = 1000; + extraGroups = [ "video" "wheel" "networkmanager" ]; + }; + + vuizvui.user.aszlig.programs.vim.enable = true; + vuizvui.enableGlobalNixpkgsConfig = true; +} diff --git a/machines/default.nix b/machines/default.nix index 598c9b7d..2d99ddaa 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -8,6 +8,7 @@ with import ../lib; kzerza = callMachine ./aszlig/kzerza.nix {}; tishtushi = callMachine ./aszlig/tishtushi.nix {}; managed = { + brawndo = callMachine ./aszlig/managed/brawndo.nix {}; notsure = callMachine ./aszlig/managed/notsure.nix {}; tyree = callMachine ./aszlig/managed/tyree.nix {}; }; |