migrate configuration.nix into flexible modular flake setup

This commit is contained in:
2025-06-03 19:17:51 +02:00
parent 44dc0edf96
commit 7633c55ed7
9 changed files with 300 additions and 300 deletions

View File

@ -0,0 +1,37 @@
{ config, pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules/common.nix
];
# Encrypted drive
boot.initrd.luks.devices."luks-1728f038-43a6-4e0d-b7dd-19a4c1083605".device = "/dev/disk/by-uuid/1728f038-43a6-4e0d-b7dd-19a4c1083605";
networking.hostName = "wildfire";
hardware = {
steam-hardware.enable = true;
graphics.enable = true;
};
# Network security specific to wildfire
networking.firewall.allowedTCPPorts = [];
networking.firewall.allowedUDPPorts = [];
# Wildfire-specific packages
environment.systemPackages = with pkgs; [
lact
];
# Wildfire-specific Systemd services
systemd.services.lact = {
description = "AMDGPU Control Daemon";
after = ["multi-user.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${pkgs.lact}/bin/lact daemon";
};
enable = true;
};
}