boxen/hosts/gwydion/default.nix

53 lines
1001 B
Nix
Raw Normal View History

2020-11-21 15:51:37 +00:00
{ config, pkgs, lib, ... }:
2020-10-29 19:29:07 +00:00
{
2021-01-10 21:13:34 +00:00
imports = [
../bits/home-common.nix
../bits/zfs.nix
../bits/amdgpu.nix
../bits/foldingathome.nix
];
2020-11-06 16:26:20 +00:00
boot.loader = {
efi = {
canTouchEfiVariables = false;
efiSysMountPoint = "/boot/efi";
};
grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = false;
device = "nodev";
2020-11-13 17:20:23 +00:00
gfxmodeEfi = "2560x1440";
extraConfig = ''
set timeout=2;
set timeout_style="menu";
'';
};
};
users.users.jez.uid = 1000;
users.groups.jez.gid = 1000;
2020-10-30 18:40:08 +00:00
networking.interfaces.enp39s0.useDHCP = true;
networking.firewall.allowedTCPPorts = [
2020-11-21 15:51:37 +00:00
6600 # mpd
21 # ftp
1313 # Hugo preview
];
hardware.pulseaudio.daemon.config = {
default-sample-rate = "192000";
alternate-sample-rate = "96000";
avoid-resampling = "yes";
};
services.vsftpd = {
enable = true;
localUsers = true;
userlist = [ "jez" ];
writeEnable = true;
};
2020-10-29 19:29:07 +00:00
}