summary refs log tree commit diff
path: root/machines/bismuth/devices.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/bismuth/devices.nix')
-rw-r--r--machines/bismuth/devices.nix75
1 files changed, 75 insertions, 0 deletions
diff --git a/machines/bismuth/devices.nix b/machines/bismuth/devices.nix
new file mode 100644
index 0000000..06fa69f
--- /dev/null
+++ b/machines/bismuth/devices.nix
@@ -0,0 +1,75 @@
+{ config, pkgs, ... }:
+
+{
+  # boot settings
+  boot = {
+    loader.grub = {
+      enable = true;
+      devices = [ "nodev" ];
+      efiSupport = true;
+      useOSProber = true;
+      gfxmodeEfi = "1366x768x32";
+    };
+
+    loader.efi.canTouchEfiVariables = true;
+
+    plymouth.enable = true;
+  
+    initrd.systemd.enable = true; 
+  };
+
+  # swap
+  swapDevices = [{
+    device = "/var/swapfile";
+    size = 8 * 1024;
+  }];
+
+  # internet
+  networking.networkmanager.enable = true;
+  
+  # sound 
+  sound.enable = true;
+  hardware.pulseaudio.enable = false;
+  security.rtkit.enable = true;
+  services.pipewire = {
+    enable = true;
+    alsa = { enable = true; support32Bit = true; };
+    pulse.enable = true;
+    jack.enable = true;
+  };
+
+  # extra filesystems
+  boot.supportedFilesystems = [ "ntfs" ];
+
+  fileSystems = {
+    "/run/media/mel/Duo" = {
+      device = "/dev/disk/by-label/Duo";
+      fsType = "ntfs-3g";
+      options = [ "rw" "uid=1000" ];
+    };
+    "/run/media/mel/Half" = {
+      device = "/dev/disk/by-label/Half";
+      fsType = "ntfs-3g";
+      options = [ "rw" "uid=1000" ];
+    };
+    "/run/media/mel/Main" = {
+      device = "/dev/disk/by-label/Main";
+      fsType = "ntfs-3g";
+      options = [ "rw" "uid=1000" ];
+    };
+  };
+
+  # printing
+  services.printing = {
+    enable = true;
+    stateless = true;
+    startWhenNeeded = true;
+  };
+
+  services.avahi.enable = false;
+  #services.avahi = {
+  #  enable = true;
+  #  nssmdns4 = true;
+  #  openFirewall = true;
+  #};
+}