From 357ea37aeda1dcb81ed8fffbf28eaf9b85ba0f71 Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 16 Sep 2025 15:47:11 +0300 Subject: [PATCH] mini-pc ext test --- nixosConfigurations/hosts/disko/mini-pc.nix | 38 +++++++++++++++++++ .../hosts/hardware/mini-pc.nix | 30 +++++++-------- 2 files changed, 53 insertions(+), 15 deletions(-) create mode 100644 nixosConfigurations/hosts/disko/mini-pc.nix diff --git a/nixosConfigurations/hosts/disko/mini-pc.nix b/nixosConfigurations/hosts/disko/mini-pc.nix new file mode 100644 index 0000000..c5928ac --- /dev/null +++ b/nixosConfigurations/hosts/disko/mini-pc.nix @@ -0,0 +1,38 @@ +{ + disko.devices = { + disk = { + main = { + device = "/dev/mmcblk0"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "512M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + swap = { + size = "2G"; + content = { + type = "swap"; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +} diff --git a/nixosConfigurations/hosts/hardware/mini-pc.nix b/nixosConfigurations/hosts/hardware/mini-pc.nix index c463c35..ff79a76 100755 --- a/nixosConfigurations/hosts/hardware/mini-pc.nix +++ b/nixosConfigurations/hosts/hardware/mini-pc.nix @@ -10,9 +10,9 @@ }: { - nixpkgs.config.permittedInsecurePackages = [ - "libsoup-2.74.3" # temp - ]; + # nixpkgs.config.permittedInsecurePackages = [ + # "libsoup-2.74.3" # temp + # ]; # nix.settings.extra-sandbox-paths = [ # "/dev/kfd" # "/sys/devices/virtual/kfd" @@ -40,18 +40,18 @@ extraModulePackages = [ ]; }; - hardware = { - amdgpu = { - opencl.enable = true; - amdvlk = { - enable = true; - }; - }; - graphics.extraPackages = with pkgs; [ - mesa - amf - ]; - }; + # hardware = { + # # amdgpu = { + # # opencl.enable = true; + # # amdvlk = { + # # enable = true; + # # }; + # # }; + # # graphics.extraPackages = with pkgs; [ + # # mesa + # # amf + # # ]; + # }; # systemd.tmpfiles.rules = [ # "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" # ];