Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commita6ed15f71852b79975ba818230cb0e113e44bae5 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-10-07 14:36:44 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-10-07 14:36:44 +0300
Filese095675097747ef24428e40ceb17f71ff23ae73f
nix-a6ed15f71852b79975ba818230cb0e113e44bae5.tar
nix-a6ed15f71852b79975ba818230cb0e113e44bae5.tar.gz
nix-a6ed15f71852b79975ba818230cb0e113e44bae5.zip
Parent49d35d1b95a763ce15a5228ff727671b674fbe04 (diff)
feat(kamen-mladenov-001): Add outline of work machine setup
2 files changed, 55 insertions, 0 deletions
-rw-r--r--machines/kamen-mladenov-001/hardware-configuration.nix50
-rw-r--r--machines/kamen-mladenov-001/sysideneity.nix5
diff --git a/machines/kamen-mladenov-001/hardware-configuration.nix b/machines/kamen-mladenov-001/hardware-configuration.nix
new file mode 100644
index 0000000..5e2aba5
--- /dev/null
+++ b/machines/kamen-mladenov-001/hardware-configuration.nix
@@ -0,0 +1,50 @@
+{
+ config,
+ lib,
+ pkgs,
+ modulesPath,
+ dirs,
+ ...
+}: {
+ imports = [(modulesPath + "/installer/scan/not-detected.nix")];
+ disko = (import "${dirs.lib}/disko.nix").makeZfsPartitions {
+ disks = ["/dev/disk/by-id/nvme-KINGSTON_SKC3000D2048G_50026B7686C1B5FA" "/dev/disk/by-id/nvme-KINGSTON_SKC3000D2048G_50026B7686C1B66E"];
+ swapSizeGB = 96;
+ espSizeGB = 4;
+ inherit config;
+ };
+ boot = {
+ initrd = {
+ kernelModules = [];
+ availableKernelModules = [
+ "ahci"
+ "nvme"
+ "rtsx_usb_sdmmc"
+ "sd_mod"
+ "usb_storage"
+ "usbhid"
+ "vmd"
+ "xhci_pci"
+ ];
+ };
+ kernelModules = ["kvm-amd"];
+ extraModulePackages = [];
+ loader = {
+ systemd-boot.enable = true;
+ grub = {
+ enable = false;
+ efiSupport = true;
+ copyKernels = true;
+ };
+ efi.canTouchEfiVariables = lib.mkDefault true;
+ };
+ blacklistedKernelModules = [];
+ };
+ networking.useDHCP = lib.mkDefault true;
+ powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
+ hardware = {
+ cpu.amd.updateMicrocode = true;
+ enableAllFirmware = true;
+ enableRedistributableFirmware = lib.mkDefault true;
+ };
+}
diff --git a/machines/kamen-mladenov-001/sysideneity.nix b/machines/kamen-mladenov-001/sysideneity.nix
new file mode 100644
index 0000000..9b5c709
--- /dev/null
+++ b/machines/kamen-mladenov-001/sysideneity.nix
@@ -0,0 +1,5 @@
+groups: {
+ name = "574afc60";
+ arch = "x86_64-linux";
+ kind = "work";
+}