dotfiles/ascanius/configuration.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

2016-01-28 02:59:31 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
let secrets = import <secrets>;
in
{
imports =
[ ./hardware-configuration.nix
../roles/common.nix
../roles/graphical.nix
2017-01-26 14:50:56 +01:00
../modules/tor-hidden-service.nix
2016-01-28 02:59:31 +01:00
];
# no, not that Ascanius.
networking.hostName = secrets.hostnames.ascanius;
# GOTTA GO FASTER
# this pulls in systemd-udevd-settle, which slows down boot
systemd.services.scsi-link-pm.enable = false;
nixpkgs.config = {
allowUnfree = true;
packageOverrides = pkgs : {
bluez = pkgs.bluez5;
2017-01-26 14:55:53 +01:00
# https://github.com/NixOS/nixpkgs/issues/22099
trustedGrub = pkgs.trustedGrub.overrideDerivation (attr: {NIX_CFLAGS_COMPILE = "-Wno-error";});
2016-01-28 02:59:31 +01:00
};
};
2016-12-08 15:30:42 +01:00
services.openssh.enable = true;
2016-01-28 02:59:31 +01:00
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
2016-04-12 16:48:36 +02:00
btrfs-progs ghostscript
2016-01-28 02:59:31 +01:00
];
virtualisation.virtualbox.host.enable = true;
users.extraUsers.yorick.hashedPassword = secrets.yorick_hashedPassword;
2016-09-21 15:16:35 +02:00
services.xserver.displayManager.sessionCommands = ''
gpg-connect-agent /bye
unset SSH_AGENT_PID
export SSH_AUTH_SOCK="''${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
'';
2017-01-26 14:50:56 +01:00
services.tor.hiddenServices = [
{ name = "ssh";
port = 22;
hostname = secrets.tor_hostnames."ssh.ascanius";
private_key = "/run/keys/torkeys/ssh.ascanius.key"; }
];
2017-01-26 14:51:44 +01:00
nix.gc.automatic = pkgs.lib.mkOverride 30 false;
2016-01-28 02:59:31 +01:00
}