stockholm/lass/1systems/daedalus/config.nix

111 lines
2.6 KiB
Nix
Raw Normal View History

2017-08-21 10:37:57 +00:00
with import <stockholm/lib>;
2017-07-28 10:02:29 +00:00
{ config, pkgs, ... }:
{
imports = [
<stockholm/lass>
<stockholm/lass/2configs/hw/x220.nix>
2017-08-21 10:36:04 +00:00
<stockholm/lass/2configs/boot/coreboot.nix>
2017-07-28 10:02:29 +00:00
<stockholm/lass/2configs/retiolum.nix>
<stockholm/lass/2configs/backups.nix>
2017-10-09 09:05:02 +00:00
<stockholm/lass/2configs/games.nix>
<stockholm/lass/2configs/steam.nix>
2017-08-21 10:37:57 +00:00
{
# bubsy config
users.users.bubsy = {
uid = genid "bubsy";
home = "/home/bubsy";
group = "users";
createHome = true;
extraGroups = [
"audio"
"networkmanager"
];
useDefaultShell = true;
};
networking.networkmanager.enable = true;
networking.wireless.enable = mkForce false;
hardware.pulseaudio = {
enable = true;
systemWide = true;
};
environment.systemPackages = with pkgs; [
pavucontrol
firefox
hexchat
networkmanagerapplet
2017-09-02 20:16:46 +00:00
libreoffice
2017-10-09 09:05:26 +00:00
audacity
2017-11-12 11:55:20 +00:00
zathura
skype
wine
2018-01-15 23:01:23 +00:00
geeqie
vlc
minecraft
2017-08-21 10:37:57 +00:00
];
2018-01-05 14:58:23 +00:00
nixpkgs.config.firefox.enableAdobeFlash = true;
2017-08-21 10:37:57 +00:00
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
2017-09-02 14:13:30 +00:00
services.xserver.layout = "de";
2017-08-21 10:37:57 +00:00
}
{
krebs.per-user.bitcoin.packages = [
pkgs.electrum
];
users.extraUsers = {
bitcoin = {
name = "bitcoin";
description = "user for bitcoin stuff";
home = "/home/bitcoin";
isNormalUser = true;
2017-08-21 10:37:57 +00:00
useDefaultShell = true;
createHome = true;
extraGroups = [ "audio" ];
2017-08-21 10:37:57 +00:00
};
};
security.sudo.extraConfig = ''
bubsy ALL=(bitcoin) NOPASSWD: ALL
'';
}
2017-09-02 20:17:31 +00:00
{
#remote control
environment.systemPackages = with pkgs; [
x11vnc
];
krebs.iptables.tables.filter.INPUT.rules = [
{ predicate = "-p tcp -i retiolum --dport 5900"; target = "ACCEPT"; }
];
}
2017-07-28 10:02:29 +00:00
];
2017-08-21 10:37:57 +00:00
time.timeZone = "Europe/Berlin";
hardware.trackpoint = {
enable = true;
sensitivity = 220;
speed = 0;
emulateWheel = true;
};
services.logind.extraConfig = ''
HandleLidSwitch=ignore
'';
2017-07-28 10:02:29 +00:00
krebs.build.host = config.krebs.hosts.daedalus;
fileSystems = {
"/bku" = {
device = "/dev/mapper/pool-bku";
fsType = "btrfs";
options = ["defaults" "noatime" "ssd" "compress=lzo"];
};
};
services.udev.extraRules = ''
2017-08-21 10:36:04 +00:00
SUBSYSTEM=="net", ATTR{address}=="08:11:96:0a:5d:6c", NAME="wl0"
SUBSYSTEM=="net", ATTR{address}=="f0:de:f1:71:cb:35", NAME="et0"
2017-07-28 10:02:29 +00:00
'';
}