From f708476a73e2da7b92faa4b80e41cb6b773be536 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 27 Dec 2023 16:26:39 +0100 Subject: [PATCH] Dummy hardware config file (copy of queen) for testing --- nixos/shodan/configuration.nix | 4 ++-- nixos/shodan/hardware-configuration.nix | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 nixos/shodan/hardware-configuration.nix diff --git a/nixos/shodan/configuration.nix b/nixos/shodan/configuration.nix index 0dcf8e5..9e0612b 100644 --- a/nixos/shodan/configuration.nix +++ b/nixos/shodan/configuration.nix @@ -16,7 +16,7 @@ builtins.fetchTarball { url = "https://github.com/Jovian-Experiments/Jovian-NixOS/archive/${revision}.tar.gz"; # Update the hash as needed: - sha256 = "sha256:9b9cd766072751ea23e22969d4804320a146afa340c496628a4a87797ac13771"; + sha256 = "sha256:1bj0vm734jllsl7kyicdjlcpm30q6syzavr3im89m0f5bpnzkj7l"; } + "/modules" ) @@ -127,7 +127,7 @@ #What desktop to start when switching to desktop session jovian.steam.desktopSession = "plasmawayland"; - jovian.steam.user = users.users.lillian; + jovian.steam.user = "lillian"; #Enable gyro service for CEMU jovian.devices.steamdeck.enableGyroDsuService = true; diff --git a/nixos/shodan/hardware-configuration.nix b/nixos/shodan/hardware-configuration.nix new file mode 100644 index 0000000..52ea2b5 --- /dev/null +++ b/nixos/shodan/hardware-configuration.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; + boot.initrd.kernelModules = ["nvme"]; + fileSystems."/" = { + device = "/dev/sda3"; + fsType = "ext4"; + }; + swapDevices = [{device = "/dev/sda2";}]; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}