diff options
| Commit | 407b8daa9cbc73968dc6f6be1542868b424207cf (patch) | |
|---|---|---|
| Author | 2023-11-30 19:27:15 +0200 | |
| Committer | 2023-11-30 19:27:15 +0200 | |
| Files | c69a4514342ea8652d3e8c765c595aaa133396da /machines/vesta/configuration.nix | |
| nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar.gz nix-407b8daa9cbc73968dc6f6be1542868b424207cf.zip | ||
| Parent | 44fc1feae00bc40d6918021dff0e7fd921cc8703 (diff) | |
[machines] Added configuration for vesta desktop
1 files changed, 42 insertions, 0 deletions
| -rw-r--r-- | machines/vesta/configuration.nix | 42 |
diff --git a/machines/vesta/configuration.nix b/machines/vesta/configuration.nix new file mode 100644 index 0000000..a50c6c5 --- /dev/null +++ b/machines/vesta/configuration.nix @@ -0,0 +1,42 @@ +{ pkgs, ... }: { + fileSystems."/mnt/Svalbard" = + { device = "/dev/disk/by-uuid/5bd27e26-5b83-4485-ab3f-bcfbbd2b40d5"; + fsType = "ext4"; + }; + + fileSystems."/mnt/Norilsk" = + { device = "/dev/disk/by-uuid/689f863a-5026-42ff-aecc-3195e8d8c684"; + fsType = "ext4"; + }; + + environment.systemPackages = with pkgs; [ alsa-plugins ]; + + # https://github.com/NixOS/nixpkgs/issues/6860 + environment.sessionVariables = { + ALSA_PLUGIN_DIR = pkgs.alsa-plugins.outPath + "/lib/alsa-lib"; + }; + + # GPU + boot.initrd.kernelModules = [ "amdgpu" ]; + services.xserver.enable = true; + services.xserver.videoDrivers = [ "amdgpu" ]; + # for Southern Islands (SI ie. GCN 1) cards + boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ]; + systemd.tmpfiles.rules = [ + "L+ /opt/rocm/hip - - - - ${pkgs.hip}" + ]; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + rocm-opencl-icd + rocm-opencl-runtime + ]; + driSupport = true; + # For 32 bit applications + driSupport32Bit = true; + }; + # system.replaceRuntimeDependencies = [ + # ({ original = pkgs.mesa; replacement = (import /srv/nixpkgs-mesa { }).pkgs.mesa; }) + # ({ original = pkgs.mesa.drivers; replacement = (import /srv/nixpkgs-mesa { }).pkgs.mesa.drivers; }) + # ]; +} |
