2015-07-11 14:55:22 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 18:54:38 +00:00
|
|
|
with import <stockholm/lib>;
|
2015-07-11 14:55:22 +00:00
|
|
|
|
|
|
|
{
|
2015-07-24 22:04:04 +00:00
|
|
|
krebs.build.host = config.krebs.hosts.nomic;
|
2015-07-27 02:33:37 +00:00
|
|
|
|
2015-07-11 14:55:22 +00:00
|
|
|
imports = [
|
2016-02-15 15:27:11 +00:00
|
|
|
../.
|
2016-12-03 01:39:04 +00:00
|
|
|
../2configs/hw/x220.nix
|
2016-02-01 16:13:46 +00:00
|
|
|
../2configs/exim-retiolum.nix
|
2017-06-04 07:07:59 +00:00
|
|
|
../2configs/gitrepos.nix
|
2016-02-17 16:23:19 +00:00
|
|
|
../2configs/im.nix
|
2016-02-17 16:07:16 +00:00
|
|
|
../2configs/mail-client.nix
|
2016-03-05 11:57:46 +00:00
|
|
|
../2configs/nginx/public_html.nix
|
2016-01-14 14:53:33 +00:00
|
|
|
../2configs/pulse.nix
|
2016-02-01 16:32:04 +00:00
|
|
|
../2configs/retiolum.nix
|
2016-01-14 14:53:33 +00:00
|
|
|
../2configs/xserver
|
2015-07-11 14:55:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.luks = {
|
2015-10-21 23:25:44 +00:00
|
|
|
cryptoModules = [ "aes" "sha512" "xts" ];
|
2015-07-11 14:55:22 +00:00
|
|
|
devices = [
|
2015-10-21 23:25:44 +00:00
|
|
|
{ name = "luks1"; device = "/dev/sda2"; }
|
2015-07-11 14:55:22 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2016-12-03 03:05:17 +00:00
|
|
|
# Don't use UEFI because current disk was partitioned/formatted for AO753.
|
|
|
|
# TODO remove following bool.loader section after repartitioning/reformatting
|
|
|
|
boot.loader = {
|
|
|
|
grub = {
|
|
|
|
device = "/dev/sda";
|
|
|
|
splashImage = null;
|
|
|
|
};
|
|
|
|
systemd-boot.enable = mkForce false;
|
|
|
|
};
|
|
|
|
|
2015-07-11 14:55:22 +00:00
|
|
|
fileSystems."/" =
|
2015-10-21 23:25:44 +00:00
|
|
|
{ device = "/dev/mapper/nomic1-root";
|
2015-07-11 14:55:22 +00:00
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2015-10-21 23:25:44 +00:00
|
|
|
{ device = "/dev/sda1";
|
2015-07-11 14:55:22 +00:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2015-10-21 23:25:44 +00:00
|
|
|
{ device = "/dev/mapper/nomic1-home";
|
2015-07-11 14:55:22 +00:00
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
# TODO base
|
|
|
|
boot.tmpOnTmpfs = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2016-06-13 00:04:22 +00:00
|
|
|
(writeDashBin "play" ''
|
2015-07-11 14:55:22 +00:00
|
|
|
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-26 22:39:03 +00:00
|
|
|
gnupg
|
2015-07-11 14:55:22 +00:00
|
|
|
tmux
|
|
|
|
];
|
|
|
|
}
|