nixos-config/machines/sdev/config.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

2016-11-27 15:25:25 +01:00
{ lib, config, pkgs, ... }:
{
krebs.build.host = config.krebs.hosts.sdev;
makefu.awesome.modkey = "Mod1";
imports =
[ # Include the results of the hardware scan.
<stockholm/makefu>
<stockholm/makefu/2configs/home-manager>
# <stockholm/makefu/2configs/hw/vbox-guest.nix> # broken since 2019-04-18
2019-04-18 20:02:07 +02:00
{ # until virtualbox-image is fixed
imports = [
<stockholm/makefu/2configs/fs/single-partition-ext4.nix>
];
boot.loader.grub.device = lib.mkForce "/dev/sda";
}
2017-07-15 23:19:06 +02:00
<stockholm/makefu/2configs/main-laptop.nix>
2016-11-27 15:25:25 +01:00
# <secrets/extra-hosts.nix>
# environment
<stockholm/makefu/2configs/tinc/retiolum.nix>
2018-02-14 09:49:57 +01:00
<stockholm/makefu/2configs/virtualisation/docker.nix>
2016-11-27 15:25:25 +01:00
];
# allow sdev to deploy self
users.extraUsers = {
root = {
openssh.authorizedKeys.keys = [ config.krebs.users.makefu-vbob.pubkey ];
};
};
2018-02-16 21:57:05 +01:00
# corefonts
nixpkgs.config.allowUnfree = true;
2016-11-27 15:25:25 +01:00
environment.systemPackages = with pkgs;[
ppp xclip
get
passwdqc-utils
gnupg
populate
2020-11-16 22:15:04 +01:00
# 20.09: torbrowser is broken
#(pkgs.writeScriptBin "tor-browser" ''
# #! /bin/sh
# TOR_SKIP_LAUNCH=1 ${torbrowser}/bin/tor-browser
#'')
2016-11-27 15:25:25 +01:00
];
networking.firewall.allowedTCPPorts = [
25
80
8010
];
}