nix-system/os/moon/configuration.nix
ant e81e37be45
Some checks failed
/ build-all (push) Failing after 1m4s
move machine specific files to their own directory
2025-09-01 22:47:20 +02:00

72 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, pkgs-unstable, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
../common.nix
../common-graphics.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "moon";
boot.kernelPackages = pkgs.linuxPackages_zen;
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.graphics = {
enable = true;
extraPackages = [ pkgs.amdvlk ];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
programs.steam.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.ant = {
isNormalUser = true;
shell = pkgs.fish;
description = "ant";
extraGroups = [ "networkmanager" "wheel" "video" ];
packages = with pkgs; [ ];
};
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
42000 # warpinator
42001 # warpinator
8080
];
networking.firewall.allowedUDPPorts = [
42000 # warpinator
42001 # warpinator
];
networking.firewall.allowedTCPPortRanges = [{
from = 1714;
to = 1764;
} # KDE Connect
];
networking.firewall.allowedUDPPortRanges = [{
from = 1714;
to = 1764;
} # KDE Connect
];
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
mesa
];
system.stateVersion = "24.05"; # Did you read the comment?
}