stockholm/tv/1systems/nomic.nix

69 lines
1.4 KiB
Nix
Raw Normal View History

2015-07-11 16:55:22 +02:00
{ config, lib, pkgs, ... }:
2016-02-14 16:43:44 +01:00
with config.krebs.lib;
2015-07-11 16:55:22 +02:00
{
krebs.build.host = config.krebs.hosts.nomic;
2015-07-27 04:33:37 +02:00
2015-07-11 16:55:22 +02:00
imports = [
2016-02-15 16:27:11 +01:00
../.
2015-10-29 01:09:54 +01:00
../2configs/hw/AO753.nix
2016-02-01 17:13:46 +01:00
../2configs/exim-retiolum.nix
2015-07-28 20:40:25 +02:00
../2configs/git.nix
2016-02-17 17:23:19 +01:00
../2configs/im.nix
2016-02-17 17:07:16 +01:00
../2configs/mail-client.nix
2016-03-05 12:57:46 +01:00
../2configs/nginx/public_html.nix
2016-01-14 15:53:33 +01:00
../2configs/pulse.nix
2016-02-01 17:32:04 +01:00
../2configs/retiolum.nix
2016-02-27 15:24:06 +01:00
../2configs/wu-binary-cache/client.nix
2016-01-14 15:53:33 +01:00
../2configs/xserver
2015-07-11 16:55:22 +02:00
];
boot.initrd.luks = {
2015-10-22 01:25:44 +02:00
cryptoModules = [ "aes" "sha512" "xts" ];
2015-07-11 16:55:22 +02:00
devices = [
2015-10-22 01:25:44 +02:00
{ name = "luks1"; device = "/dev/sda2"; }
2015-07-11 16:55:22 +02:00
];
};
fileSystems."/" =
2015-10-22 01:25:44 +02:00
{ device = "/dev/mapper/nomic1-root";
2015-07-11 16:55:22 +02:00
fsType = "btrfs";
};
fileSystems."/boot" =
2015-10-22 01:25:44 +02:00
{ device = "/dev/sda1";
2015-07-11 16:55:22 +02:00
fsType = "ext4";
};
fileSystems."/home" =
2015-10-22 01:25:44 +02:00
{ device = "/dev/mapper/nomic1-home";
2015-07-11 16:55:22 +02:00
fsType = "btrfs";
};
swapDevices = [ ];
# TODO base
boot.tmpOnTmpfs = true;
environment.systemPackages = with pkgs; [
(writeScriptBin "play" ''
#! /bin/sh
set -euf
mpv() { exec ${mpv}/bin/mpv "$@"; }
case $1 in
deepmix) mpv http://deepmix.ru/deepmix128.pls;;
groovesalad) mpv http://somafm.com/play/groovesalad;;
ntslive) mpv http://listen2.ntslive.co.uk/listen.pls;;
*)
echo "$0: bad argument: $*" >&2
exit 23
esac
'')
2015-09-27 00:39:03 +02:00
gnupg
2015-08-29 08:57:53 +02:00
ntp # ntpate
2015-07-11 16:55:22 +02:00
rxvt_unicode.terminfo
tmux
];
}