diff --git a/nixos/configuration.nix b/nixos/configuration.nix index f207b72..886d06c 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -9,8 +9,11 @@ [ # Include the results of the hardware scan. ./hardware-configuration.nix #inputs.home-manager.nisosModules.home-manager + #(import "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos") + #/../home-manager/home.nix ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs.config.allowUnfree = true; @@ -79,7 +82,7 @@ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.kaitlynn = { isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" "libvirtd" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ firefox tree @@ -93,6 +96,7 @@ r2modman vesktop spotify + prismlauncher ]; }; @@ -110,17 +114,81 @@ nvtop pavucontrol gpsd + gdal python311Full python311Packages.pip usbutils pciutils + gcc + libgcc + zlib + nix-index + screen + putty + psmisc + spice + spice-gtk + spice-protocol + virt-viewer + virtio-win + win-spice + home-manager ]; + programs.nix-ld.enable = true; + programs.nix-ld.libraries = with pkgs; [ + zlib # numpy + libgcc # sqlalchemy + # that's where the shared libs go, you can find which one you need using + # nix-locate --top-level libstdc++.so.6 (replace this with your lib) + # ^ this requires `nix-index` pkg + ]; + + # Virtualization + virtualisation = { + libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + swtpm.enable = true; + ovmf.enable = true; + ovmf.packages = [ pkgs.OVMFFull.fd ]; + }; + }; + spiceUSBRedirection.enable = true; + }; + + programs.virt-manager.enable = true; + + #home-manager.users.kaitlynn = { + # dconf.settings = { + # "org/virt-manager/virt-manager/connections" = { + # autoconnect = [ "qemu:///system" ]; + # uris = [ "qemu:///system" ]; + # }; + # }; + #}; +#} + services.gpsd = { enable = true; - devices = [ "/dev/ttyUSB0" ]; + devices = [ "/dev/rfcomm0" ]; }; + # Bluetooth stuff + hardware.bluetooth = { + enable = true; # enables support for Bluetooth + powerOnBoot = true; # powers up the default Bluetooth controller on boot + settings.General = { + #Enable = + ControllerMode = "bredr"; + #FastConnectable = "true"; + Experimental = "true"; + KernelExperimental = "true"; + }; + }; + services.blueman.enable = true; + programs.steam.enable = true; nixpkgs.config.permittedInsecurePackages = [