From 5a10ff9780b835b82ca38d872c3a5457ea5429bf Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Fri, 22 Nov 2024 09:38:55 -0500 Subject: [PATCH] rtl-sdr --- hosts/Parzival/default.nix | 2 +- hosts/Parzival/hardware-configuration.nix | 57 ++++++++++++----------- modules/programs.nix | 1 + modules/users/crow/user.nix | 2 +- 4 files changed, 33 insertions(+), 29 deletions(-) diff --git a/hosts/Parzival/default.nix b/hosts/Parzival/default.nix index 3dc9b07..dc40a8a 100644 --- a/hosts/Parzival/default.nix +++ b/hosts/Parzival/default.nix @@ -5,7 +5,7 @@ ]; networking.hostName = "Parzival"; - + user.crow.enable = true; desktop.sway.enable = true; diff --git a/hosts/Parzival/hardware-configuration.nix b/hosts/Parzival/hardware-configuration.nix index 4170542..b24f0e1 100644 --- a/hosts/Parzival/hardware-configuration.nix +++ b/hosts/Parzival/hardware-configuration.nix @@ -4,41 +4,44 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; - fileSystems."/" = + fileSystems."/" = { device = "/dev/disk/by-label/nixos"; - fsType = "ext4"; + fsType = "ext4"; }; - fileSystems."/boot" = + fileSystems."/boot" = { device = "/dev/disk/by-label/boot"; - fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [ ]; + 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..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true; +# 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; +# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; +# networking.interfaces.wlp8s0.useDHCP = lib.mkDefault true; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - hardware.amdgpu = { - initrd.enable = true; - amdvlk.enable = true; - opencl.enable = true; - }; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.amdgpu = { + initrd.enable = true; + amdvlk.enable = true; + opencl.enable = true; + }; + + + hardware.rtl-sdr.enable = true; } diff --git a/modules/programs.nix b/modules/programs.nix index 5ef88b4..50bed13 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -33,6 +33,7 @@ slack zoom-us vesktop + discord signal-desktop teamspeak_client diff --git a/modules/users/crow/user.nix b/modules/users/crow/user.nix index fc08104..24ac2cc 100644 --- a/modules/users/crow/user.nix +++ b/modules/users/crow/user.nix @@ -2,7 +2,7 @@ config.users.users.crow = lib.mkIf config.user.crow.enable { isNormalUser = true; initialPassword = "changeme"; - extraGroups = [ "wheel" "networkmanager" "audio" ]; + extraGroups = [ "wheel" "networkmanager" "audio" "plugdev" ]; }; config.systemd.services.note_sync = {