Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit407b8daa9cbc73968dc6f6be1542868b424207cf (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-11-30 19:27:15 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-11-30 19:27:15 +0200
Filesc69a4514342ea8652d3e8c765c595aaa133396da
nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar
nix-407b8daa9cbc73968dc6f6be1542868b424207cf.tar.gz
nix-407b8daa9cbc73968dc6f6be1542868b424207cf.zip
Parent44fc1feae00bc40d6918021dff0e7fd921cc8703 (diff)
[machines] Added configuration for vesta desktop
4 files changed, 97 insertions, 1 deletions
-rw-r--r--configuration.nix7
-rw-r--r--machines/vesta/configuration.nix42
-rw-r--r--machines/vesta/hardware-configuration.nix42
-rw-r--r--machines/vesta/sysidentity.nix7
diff --git a/configuration.nix b/configuration.nix
index 6ddca8a..6fa2a7d 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -104,14 +104,19 @@
# Sound
#
- sound.enable = true;
+ sound.enable = false;
# hardware.pulseaudio.enable = true;
services.pipewire = {
enable = true;
+ alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
+ services.dbus = {
+ enable = true;
+ packages = [ pkgs.dconf ];
+ };
#
# Networking
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; })
+ # ];
+}
diff --git a/machines/vesta/hardware-configuration.nix b/machines/vesta/hardware-configuration.nix
new file mode 100644
index 0000000..39158d6
--- /dev/null
+++ b/machines/vesta/hardware-configuration.nix
@@ -0,0 +1,42 @@
+# 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 = [ "xhci_pci" "ehci_pci" "ahci" "firewire_ohci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/766f2ace-7300-45c0-aaba-25b84da5c308";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/269D-7930";
+ fsType = "vfat";
+ };
+
+ fileSystems."/home" =
+ { device = "/dev/disk/by-uuid/0197b42b-12e0-4d7e-b65b-cdd9bed07eda";
+ fsType = "ext4";
+ };
+
+ swapDevices = [ ];
+
+ # 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.enp0s25.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/machines/vesta/sysidentity.nix b/machines/vesta/sysidentity.nix
new file mode 100644
index 0000000..58bd31f
--- /dev/null
+++ b/machines/vesta/sysidentity.nix
@@ -0,0 +1,7 @@
+{
+ sysidentity = {
+ name = "vesta";
+ type = "desktop";
+ arch = "x86_64-linux";
+ };
+}