107 lines
2.0 KiB
Nix
107 lines
2.0 KiB
Nix
|
{ config, lib, pkgs, inputs, specialArgs, ... }:
|
||
|
{
|
||
|
imports = [
|
||
|
./hardware-configuration.nix
|
||
|
|
||
|
./services/avahi.nix
|
||
|
./services/docker.nix
|
||
|
./services/jenkins.nix
|
||
|
];
|
||
|
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
|
||
|
boot.binfmt.emulatedSystems = [
|
||
|
"aarch64-linux"
|
||
|
"armv7l-linux"
|
||
|
];
|
||
|
|
||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
|
||
|
services.udev.packages = with pkgs; [
|
||
|
segger-jlink
|
||
|
];
|
||
|
|
||
|
system.stateVersion = "24.05";
|
||
|
|
||
|
machineVars = {
|
||
|
headless = false;
|
||
|
gaming = false;
|
||
|
development = true;
|
||
|
creative = true;
|
||
|
|
||
|
dataDrives = let
|
||
|
main = "/data";
|
||
|
in {
|
||
|
drives = { inherit main; };
|
||
|
default = main;
|
||
|
};
|
||
|
|
||
|
screens = {
|
||
|
DP-1 = {
|
||
|
primary = true;
|
||
|
frequency = 60;
|
||
|
};
|
||
|
DP-2 = {
|
||
|
frequency = 60;
|
||
|
position = "1920x0";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
systemd.targets = {
|
||
|
sleep.enable = false;
|
||
|
suspend.enable = false;
|
||
|
hibernate.enable = false;
|
||
|
hybrid-sleep.enable = false;
|
||
|
};
|
||
|
|
||
|
# security.pam.services.login.unixAuth = true;
|
||
|
|
||
|
systemd.network = {
|
||
|
enable = true;
|
||
|
# broken
|
||
|
wait-online.enable = false;
|
||
|
};
|
||
|
|
||
|
networking = {
|
||
|
hostName = "dosei";
|
||
|
# networkmanager.enable = true;
|
||
|
# TODO: reenable
|
||
|
firewall.enable = false;
|
||
|
# hostId = "";
|
||
|
};
|
||
|
|
||
|
services = {
|
||
|
openssh = {
|
||
|
enable = true;
|
||
|
settings.X11Forwarding = true;
|
||
|
};
|
||
|
# xserver = {
|
||
|
# # displayManager.gdm.enable = true;
|
||
|
# # desktopManager.gnome.enable = true;
|
||
|
# # videoDrivers = [ "nvidia" ];
|
||
|
# };
|
||
|
# tailscale.enable = true;
|
||
|
};
|
||
|
|
||
|
hardware = {
|
||
|
bluetooth.enable = true;
|
||
|
# cpu.amd.updateMicrocode = true;
|
||
|
enableRedistributableFirmware = true;
|
||
|
keyboard.zsa.enable = true;
|
||
|
opengl = {
|
||
|
enable = true;
|
||
|
driSupport = true;
|
||
|
driSupport32Bit = true;
|
||
|
};
|
||
|
|
||
|
# nvidia = {
|
||
|
# modesetting.enable = true;
|
||
|
# nvidiaSettings = true;
|
||
|
# };
|
||
|
};
|
||
|
|
||
|
programs.usbtop.enable = true;
|
||
|
}
|