move machine specific files to their own directory
All checks were successful
/ build-all (push) Successful in 1m37s

This commit is contained in:
ant 2025-09-01 22:42:42 +02:00
parent 09b1feb204
commit 5125e78b36
5 changed files with 9 additions and 9 deletions

72
os/moon/configuration.nix Normal file
View file

@ -0,0 +1,72 @@
{ 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?
}

View file

@ -0,0 +1,40 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usbhid" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/6d8c21b7-440e-4f6d-b18b-f7cd31c410c0";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-0fb5e946-b7c0-4d18-88a6-382df27a3975".device = "/dev/disk/by-uuid/0fb5e946-b7c0-4d18-88a6-382df27a3975";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4EEC-7095";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}