stockholm/makefu/1systems/darth.nix

40 lines
985 B
Nix
Raw Normal View History

2016-03-11 01:10:34 +00:00
{ config, pkgs, lib, ... }:
with config.krebs.lib;
2016-03-16 07:41:13 +00:00
let
byid = dev: "/dev/disk/by-id/" + dev;
rootDisk = byid "ata-ADATA_SSD_S599_64GB_10460000000000000039";
auxDisk = byid "ata-HGST_HTS721010A9E630_JR10006PH3A02F";
dataPartition = auxDisk + "-part1";
allDisks = [ rootDisk auxDisk ];
in {
2016-03-11 01:10:34 +00:00
imports = [
2016-03-16 07:41:13 +00:00
../.
2016-03-06 19:56:25 +00:00
../2configs/fs/single-partition-ext4.nix
../2configs/zsh-user.nix
2016-03-16 07:41:13 +00:00
../2configs/smart-monitor.nix
2016-03-11 01:10:34 +00:00
];
2016-03-16 07:41:13 +00:00
# virtualisation.nova.enableSingleNode = true;
2016-03-11 01:10:34 +00:00
krebs.retiolum.enable = true;
2016-03-16 07:41:13 +00:00
# TODO smartd omo darth gum all-in-one
services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
zramSwap.enable = true;
fileSystems."/data" = {
device = dataPartition;
fsType = "ext4";
};
boot.loader.grub.device = rootDisk;
2016-03-11 08:03:49 +00:00
users.users.root.openssh.authorizedKeys.keys = [
config.krebs.users.makefu-omo.pubkey
2016-03-16 07:41:13 +00:00
config.krebs.users.makefu-vbob.pubkey
2016-03-11 08:03:49 +00:00
];
2016-03-16 07:41:13 +00:00
krebs.build.host = config.krebs.hosts.darth;
2016-03-06 19:56:25 +00:00
}