2020-11-06 22:00:41 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2020-08-15 03:27:08 +00:00
|
|
|
|
|
|
|
{
|
2020-08-17 21:37:22 +00:00
|
|
|
imports = [
|
|
|
|
./boot-config.nix
|
|
|
|
./hardware-configuration.nix
|
2020-11-17 01:51:13 +00:00
|
|
|
../../private/starlight.nix
|
2020-12-18 05:36:57 +00:00
|
|
|
../../sets/builder.nix
|
2020-11-17 01:51:13 +00:00
|
|
|
../../sets/cpu/amd.nix
|
2020-11-01 20:27:07 +00:00
|
|
|
../../sets/fpga.nix
|
2020-11-16 22:47:50 +00:00
|
|
|
../../sets/gpu/amd.nix
|
2020-11-17 01:51:13 +00:00
|
|
|
../../sets/hacking.nix
|
|
|
|
../../sets/hardware.nix
|
2021-02-20 23:32:07 +00:00
|
|
|
../../sets/krb5.nix
|
2020-12-02 23:48:13 +00:00
|
|
|
../../sets/printing.nix
|
2020-11-17 01:51:13 +00:00
|
|
|
../../sets/ssh.nix
|
|
|
|
../../sets/virtualization.nix
|
2021-01-10 06:27:22 +00:00
|
|
|
../../sets/workstation.nix
|
2020-08-17 21:37:22 +00:00
|
|
|
];
|
2020-08-15 03:27:08 +00:00
|
|
|
|
2020-11-26 04:17:41 +00:00
|
|
|
# Network
|
2020-08-15 03:27:08 +00:00
|
|
|
networking.hostName = "starlight";
|
2020-10-21 21:04:01 +00:00
|
|
|
services.udev.extraRules = ''
|
2020-11-26 04:17:41 +00:00
|
|
|
KERNEL=="eth*", ATTR{address}=="00:0f:53:16:15:9c", NAME="lan10g0"
|
|
|
|
KERNEL=="eth*", ATTR{address}=="00:0f:53:16:15:9d", NAME="lan10g1"
|
2020-12-10 16:27:06 +00:00
|
|
|
KERNEL=="eth*", ATTR{address}=="b4:2e:99:3d:07:66", NAME="lan1g0"
|
2021-04-28 17:50:54 +00:00
|
|
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0407", MODE="0660", GROUP="plugdev"
|
2020-10-21 21:04:01 +00:00
|
|
|
'';
|
2020-11-06 22:00:41 +00:00
|
|
|
networking.bridges.br0 = {
|
|
|
|
rstp = true;
|
2020-12-10 16:27:06 +00:00
|
|
|
interfaces = [ "lan10g0" "lan10g1" "lan1g0" ];
|
2020-11-06 22:00:41 +00:00
|
|
|
};
|
|
|
|
networking.interfaces.br0 = {
|
|
|
|
useDHCP = true;
|
|
|
|
ipv6.addresses = [{
|
|
|
|
address = "2001:470:8b04:6900:6969:1454:7749:e591";
|
|
|
|
prefixLength = 128;
|
|
|
|
}];
|
|
|
|
};
|
2020-11-06 22:10:01 +00:00
|
|
|
networking.dhcpcd.allowInterfaces = [ "br0" ];
|
2020-11-06 22:00:41 +00:00
|
|
|
|
2020-11-26 04:17:41 +00:00
|
|
|
|
|
|
|
# Filesystems
|
|
|
|
boot.supportedFilesystems = [ "zfs" "btrfs" ];
|
|
|
|
boot.zfs = {
|
|
|
|
enableUnstable = true;
|
|
|
|
forceImportAll = false;
|
|
|
|
forceImportRoot = false;
|
|
|
|
requestEncryptionCredentials = false;
|
|
|
|
};
|
|
|
|
services.btrfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
fileSystems = [ "/" "/media/data" "/media/archive" ];
|
|
|
|
};
|
|
|
|
|
2021-04-20 00:12:53 +00:00
|
|
|
# Skye user for luna
|
|
|
|
users.users.skye = {
|
|
|
|
isSystemUser = true;
|
|
|
|
uid = 1001;
|
|
|
|
extraGroups = [ "users" ];
|
|
|
|
};
|
|
|
|
|
2020-11-26 04:17:41 +00:00
|
|
|
# Packages
|
2020-11-17 01:51:13 +00:00
|
|
|
services.tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
2020-08-15 03:27:08 +00:00
|
|
|
};
|
2020-11-06 22:00:41 +00:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ];
|
2020-08-15 03:27:08 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2020-10-21 21:04:01 +00:00
|
|
|
weechat
|
2020-08-15 03:27:08 +00:00
|
|
|
];
|
|
|
|
|
2021-04-08 03:49:01 +00:00
|
|
|
|
|
|
|
# Printing
|
|
|
|
services.printing = {
|
|
|
|
listenAddresses = [ "localhost:631" "10.69.0.2:631" "starlight.manehattan.artem.ist:631" ];
|
|
|
|
allowFrom = [ "localhost" "10.69.0.*" ];
|
|
|
|
};
|
|
|
|
|
2021-04-28 17:50:54 +00:00
|
|
|
# Scanning
|
|
|
|
hardware.sane.enable = true;
|
|
|
|
users.users.artemis.extraGroups = [ "scanner" ];
|
|
|
|
|
2020-08-15 03:27:08 +00:00
|
|
|
system.stateVersion = "19.09";
|
|
|
|
}
|