dot_testing/boxes/mlg/default.nix

90 lines
1.9 KiB
Nix
Raw Normal View History

2023-08-01 15:39:35 -05:00
{ lib, config, pkgs, ...}:
{
imports = [
2024-01-24 23:09:02 -06:00
./hardware-configuration.nix
2023-12-28 15:27:31 -06:00
./nvidia.nix
2024-01-24 23:09:02 -06:00
../../modules/ssh-phone-home.nix
2024-03-18 18:27:29 -05:00
../../modules/hosts.nix
2023-12-28 15:27:31 -06:00
../../modules/bootstrap.nix
../../modules/common.nix
../../modules/x11.nix
../../modules/discord.nix
2024-05-25 14:06:08 -05:00
# ../../modules/gaming.nix
../../modules/rbw.nix
2023-08-01 15:39:35 -05:00
];
2023-10-15 13:31:04 -05:00
environment.systemPackages = with pkgs; [
wine
xdotool
qemu
virt-manager
2023-11-23 14:06:56 -06:00
libreoffice
2023-10-15 13:31:04 -05:00
nomacs
vscodium
2023-12-31 18:54:59 -06:00
thunderbird
libreoffice
2024-03-18 18:27:29 -05:00
texliveMedium
ledger
2023-10-15 13:31:04 -05:00
];
services.hardware.bolt.enable = true; # thunderbolt support
hardware.bluetooth = {
enable = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
ControllerMode = "bredr";
};
};
};
2024-01-24 23:09:02 -06:00
services.openssh.enable = true;
services.ssh-phone-home = {
enable = true;
localUser = "usr";
remoteHostname = "mainsail";
2024-01-24 23:09:02 -06:00
remotePort = 22;
remoteUser = "usr";
bindPort = 2222;
};
2023-08-01 15:39:35 -05:00
boot.loader = {
efi = {
canTouchEfiVariables = true;
2023-08-01 23:03:39 -05:00
efiSysMountPoint = "/boot";
2023-08-01 15:39:35 -05:00
};
grub = {
efiSupport = true;
device = "nodev";
};
};
2023-11-23 14:06:56 -06:00
services.printing.enable = true;
services.avahi.enable = true; # runs the Avahi daemon
services.avahi.nssmdns = true; # enables the mDNS NSS plug-in
services.avahi.openFirewall = true; # opens the firewall for UDP port 5353
powerManagement.cpuFreqGovernor = "performance";
2024-01-24 19:37:55 -06:00
nixpkgs.config.allowUnfree = true;
networking = {
hostName = "mlg";
2024-05-12 13:23:59 -05:00
firewall = {
enable = true;
allowedTCPPorts = [ 6000 ];
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
};
2024-05-12 13:23:59 -05:00
programs.kdeconnect.enable = true;
system.stateVersion = "23.11"; # don't change this, lol
2023-08-01 15:39:35 -05:00
}