2017-10-15 16:28:43 +02:00
|
|
|
# Local configuration for 'adho' (Thinkpad T470s)
|
2017-10-29 16:47:05 +01:00
|
|
|
{ config, pkgs, ...}:
|
2017-10-15 16:28:43 +02:00
|
|
|
|
|
|
|
{
|
2017-10-15 16:42:31 +02:00
|
|
|
boot.initrd.luks.devices.adho.device = "/dev/disk/by-uuid/722006b0-9654-4ea1-8703-e0cf9ac1905e";
|
2018-10-10 12:54:59 +02:00
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
2017-10-15 16:28:43 +02:00
|
|
|
services.xserver.libinput.enable = true;
|
2017-10-16 10:11:32 +02:00
|
|
|
services.xserver.videoDrivers = [ "intel" ];
|
2017-10-15 20:01:07 +02:00
|
|
|
programs.light.enable = true;
|
2017-10-16 13:47:10 +02:00
|
|
|
|
2018-03-17 21:47:17 +01:00
|
|
|
# Office printer configuration
|
|
|
|
services.printing.enable = true;
|
|
|
|
services.printing.drivers = [ pkgs.hplip ];
|
|
|
|
services.avahi.enable = true;
|
|
|
|
services.avahi.nssmdns = true;
|
|
|
|
|
2018-12-26 01:00:34 +01:00
|
|
|
# Enable VirtualBox to update Beatstep Pro firmware:
|
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
|
|
virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
|
|
|
|
|
|
# Enable LXC/LXD for Nixini work
|
|
|
|
virtualisation.lxd.enable = true;
|
|
|
|
|
2018-09-02 15:13:27 +02:00
|
|
|
# Give me more entropy:
|
|
|
|
services.haveged.enable = true;
|
|
|
|
|
2018-10-10 13:34:07 +02:00
|
|
|
# Disable sandbox to let work-builds function:
|
|
|
|
nix.useSandbox = false;
|
|
|
|
|
2018-08-10 22:16:57 +02:00
|
|
|
# Yubikey related:
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
cfssl
|
|
|
|
libp11
|
|
|
|
opensc
|
|
|
|
yubico-piv-tool
|
|
|
|
];
|
|
|
|
|
2017-10-21 00:33:39 +02:00
|
|
|
networking = {
|
|
|
|
hostName = "adho";
|
|
|
|
wireless.enable = true;
|
2017-10-25 17:20:06 +02:00
|
|
|
wireless.userControlled.enable = true;
|
|
|
|
|
2017-10-21 00:33:39 +02:00
|
|
|
wireless.networks = {
|
|
|
|
# Welcome to roast club!
|
2018-12-26 00:59:47 +01:00
|
|
|
"How do I computer?" = {
|
2017-10-21 00:33:39 +02:00
|
|
|
psk = "washyourface";
|
|
|
|
};
|
2017-10-16 13:47:10 +02:00
|
|
|
|
2017-10-25 17:20:06 +02:00
|
|
|
# On the go!
|
|
|
|
"Rumpetroll" = {
|
|
|
|
psk = "fisk1234";
|
|
|
|
# If this network exists, chances are that I want it:
|
|
|
|
priority = 10;
|
|
|
|
};
|
|
|
|
|
2017-10-21 00:33:39 +02:00
|
|
|
# Public places in Oslo:
|
|
|
|
"Abelone" = {
|
|
|
|
psk = "speakeasy";
|
|
|
|
};
|
2017-10-22 01:30:22 +02:00
|
|
|
|
2018-06-06 10:32:09 +02:00
|
|
|
"Wurst" = {
|
|
|
|
psk = "wurst2015";
|
|
|
|
};
|
|
|
|
|
2018-06-25 18:56:10 +02:00
|
|
|
"postkontoret" = {
|
|
|
|
psk = "postkontoret";
|
|
|
|
};
|
|
|
|
|
2017-10-22 01:30:22 +02:00
|
|
|
# Eugene's apartment:
|
|
|
|
"GET_5G_4FD250" = {
|
|
|
|
psk = "62636342";
|
|
|
|
};
|
2017-11-08 15:35:04 +01:00
|
|
|
|
|
|
|
# FSCONS 2017
|
|
|
|
"uioguest" = {};
|
|
|
|
|
|
|
|
# Hackeriet!
|
|
|
|
"hackeriet.no" = {
|
|
|
|
psk = "hackeriet.no";
|
|
|
|
};
|
2017-11-10 09:54:31 +01:00
|
|
|
|
|
|
|
# Cafe Sara
|
|
|
|
"Sara Nett" = {
|
|
|
|
psk = "sarabar1989";
|
|
|
|
};
|
2017-11-20 22:00:50 +01:00
|
|
|
|
2018-04-22 12:43:33 +02:00
|
|
|
# The Dubliner
|
|
|
|
"DubGjest" = {
|
|
|
|
# of course
|
|
|
|
psk = "Guinness";
|
|
|
|
};
|
|
|
|
|
2018-06-25 18:56:10 +02:00
|
|
|
"MAGNAT Guest" = {
|
|
|
|
psk = "elmolino021";
|
|
|
|
};
|
|
|
|
|
2017-11-24 09:28:15 +01:00
|
|
|
"BrewDog" = {
|
|
|
|
psk = "welovebeer";
|
|
|
|
};
|
|
|
|
|
2017-12-21 11:04:36 +01:00
|
|
|
# Dima's
|
|
|
|
"What's a Bad Idea?" = {
|
|
|
|
psk = "DQDxzrzIvy0YtDwH";
|
|
|
|
};
|
|
|
|
|
2018-09-16 16:51:20 +02:00
|
|
|
# Loke's
|
|
|
|
"VMC28F76E" = {
|
|
|
|
psk = "d2ftQnr6xppw";
|
|
|
|
};
|
|
|
|
|
2018-01-10 14:53:47 +01:00
|
|
|
"SafetyWiFi - Teknologihuset" = {
|
|
|
|
psk = "tech4ever";
|
|
|
|
};
|
|
|
|
|
2018-02-19 08:55:07 +01:00
|
|
|
"Selvaag Pluss" = {
|
|
|
|
psk = "detlilleekstra";
|
|
|
|
};
|
|
|
|
|
2018-03-03 15:37:38 +01:00
|
|
|
"Langler" = {
|
|
|
|
psk = "Oslo2018";
|
|
|
|
};
|
|
|
|
|
2018-05-25 17:42:50 +02:00
|
|
|
# Pils & Programmering
|
|
|
|
"BEKKguest" = {
|
|
|
|
psk = "guest7890";
|
|
|
|
};
|
|
|
|
|
2018-10-10 11:20:07 +02:00
|
|
|
"Homan-Gjest" = {
|
|
|
|
psk = "haveaniceday";
|
|
|
|
};
|
|
|
|
|
2018-05-27 19:12:14 +02:00
|
|
|
# Røverstaden
|
|
|
|
"Roverstaden" = {
|
|
|
|
psk = "r0verstaden2018";
|
|
|
|
};
|
|
|
|
|
2018-09-16 16:51:20 +02:00
|
|
|
"The Brew Dock" = {
|
|
|
|
psk = "realbeer";
|
|
|
|
};
|
|
|
|
|
2018-10-25 11:25:09 +02:00
|
|
|
"econ-guest" = {
|
|
|
|
psk = "Finance2010";
|
|
|
|
};
|
|
|
|
|
|
|
|
"KabelBox-2FD0" = {
|
|
|
|
psk = "92433048597489095671";
|
|
|
|
};
|
|
|
|
|
2018-12-26 00:59:59 +01:00
|
|
|
"TheKasbah" = {
|
|
|
|
psk = "couscous";
|
|
|
|
};
|
|
|
|
|
2019-01-30 10:14:32 +01:00
|
|
|
# Kitty's misspelled network.
|
|
|
|
"How do I Computer?" = {
|
|
|
|
psk = "herpderpponies";
|
|
|
|
};
|
|
|
|
|
2018-10-25 11:25:09 +02:00
|
|
|
# NixCon 2018
|
|
|
|
"Coin Street Community Builders " = {
|
|
|
|
psk = "3vents2016";
|
|
|
|
};
|
|
|
|
|
2019-02-11 14:54:07 +01:00
|
|
|
"KH2 Gjest" = {
|
|
|
|
psk = "haenfindag";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Forest & Brown
|
|
|
|
"Forest Guest" = {
|
|
|
|
psk = "437B99AC5B";
|
|
|
|
};
|
|
|
|
|
2018-10-28 23:40:20 +01:00
|
|
|
"Gatwick FREE Wi-Fi" = {};
|
2018-10-25 11:25:09 +02:00
|
|
|
"mycloud" = {};
|
2017-12-31 16:48:03 +01:00
|
|
|
"Norwegian Internet Access" = {};
|
|
|
|
"NSB_INTERAKTIV" = {};
|
2017-12-24 18:07:10 +01:00
|
|
|
"The Thief" = {};
|
2017-11-20 22:00:50 +01:00
|
|
|
"espressohouse" = {};
|
|
|
|
"Gotanet Open" = {};
|
2017-12-21 11:04:36 +01:00
|
|
|
"wifi.flytoget.no" = {};
|
|
|
|
"AIRPORT" = {};
|
|
|
|
"ilcaffelovesyou" = {};
|
2017-12-31 16:48:03 +01:00
|
|
|
"WIFIonICE" = {};
|
2018-01-14 00:25:14 +01:00
|
|
|
"Lorry Gjest" = {};
|
2018-02-02 10:59:27 +01:00
|
|
|
"Amundsengjest" = {};
|
2018-09-02 15:13:43 +02:00
|
|
|
"Beer Palace Gjest" = {};
|
2018-10-25 11:25:09 +02:00
|
|
|
"ibis" = {};
|
2018-12-26 00:59:59 +01:00
|
|
|
"GoogleGuest" = {};
|
2017-10-16 13:47:10 +02:00
|
|
|
};
|
|
|
|
};
|
2017-10-19 19:54:15 +02:00
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
2017-10-20 20:22:51 +02:00
|
|
|
|
|
|
|
# Configure POSIX queue limits (for work)
|
|
|
|
systemd.tmpfiles.rules = let mqueue = "/proc/sys/fs/mqueue"; in [
|
|
|
|
"w ${mqueue}/msgsize_max - - - - ${toString (64 * 1024)}"
|
|
|
|
"w ${mqueue}/msg_max - - - - 50"
|
|
|
|
];
|
2017-10-15 16:28:43 +02:00
|
|
|
}
|