From c8235346fe342df4aebc3f47d4f29040162dbe61 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 15 Oct 2024 15:52:11 +0200 Subject: Bring in bismuth configuration Signed-off-by: Mel --- machines/bismuth/devices.nix | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 machines/bismuth/devices.nix (limited to 'machines/bismuth/devices.nix') 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; + #}; +} -- cgit 1.4.1