nixos-config/1systems/sdev/config.nix

54 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
(pkgs.writeScriptBin "tor-browser" ''
#! /bin/sh
TOR_SKIP_LAUNCH=1 ${torbrowser}/bin/tor-browser
'')
];
networking.firewall.allowedTCPPorts = [
25
80
8010
];
}