mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ config, user, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(import ./../../modules/xrdp.nix)
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
programs.adb.enable = true;
|
|
users.users.${user}.extraGroups = [ "adbusers" ];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
networking.hosts = {
|
|
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net"
|
|
"jellyfin.nickiel.net" ];
|
|
};
|
|
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
|
services.tailscale.enable = true; networking.firewall = {
|
|
checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ];
|
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
|
};
|
|
time.hardwareClockInLocalTime = true;
|
|
|
|
boot.loader = { efi = {
|
|
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
|
};
|
|
grub = {
|
|
devices = [ "nodev" ];
|
|
efiSupport = true;
|
|
enable = true;
|
|
useOSProber = true;
|
|
# extraEntries = ''
|
|
# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows
|
|
# --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
|
|
# insmod part_gpt insmod fat search --no-floppy --fs-uuid
|
|
# --set=root 364F-BE7A chainloader
|
|
# /efi/Microsoft/Boot/bootmgfw.efi
|
|
# }
|
|
# '';
|
|
};
|
|
};
|
|
|
|
}
|