diff options
author | makefu <github@syntax-fehler.de> | 2016-03-16 08:41:13 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-03-16 08:41:13 +0100 |
commit | 3fd832b693734a880b17487f26f0c95d530c9995 (patch) | |
tree | eca39e8fe9e80476a9c9d1380fcd9edfb7275eeb /1systems | |
parent | 99003eeeb29d7cc4a983c30b71cb9056d0d977ab (diff) |
ma 1 darth: configure aux disk
Diffstat (limited to '1systems')
-rw-r--r-- | 1systems/darth.nix | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/1systems/darth.nix b/1systems/darth.nix index a33744f0b..ad3ac4f22 100644 --- a/1systems/darth.nix +++ b/1systems/darth.nix @@ -1,17 +1,39 @@ { config, pkgs, lib, ... }: with config.krebs.lib; -{ +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 { imports = [ + ../. ../2configs/fs/single-partition-ext4.nix ../2configs/zsh-user.nix - ../. + ../2configs/smart-monitor.nix ]; + # virtualisation.nova.enableSingleNode = true; krebs.retiolum.enable = true; - boot.loader.grub.device = "/dev/disk/by-id/ata-ADATA_SSD_S599_64GB_10460000000000000039"; + # 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; + users.users.root.openssh.authorizedKeys.keys = [ config.krebs.users.makefu-omo.pubkey + config.krebs.users.makefu-vbob.pubkey ]; + + krebs.build.host = config.krebs.hosts.darth; } |