Skip to content

Commit

Permalink
Merge pull request #47 from Thymis-io/feat/raspberry-pi-3
Browse files Browse the repository at this point in the history
Support for Raspberry Pi 3
  • Loading branch information
MSchmoecker authored Jul 12, 2024
2 parents 89407cf + dd4b007 commit 12fd666
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 24 deletions.
1 change: 0 additions & 1 deletion controller/thymis_controller/modules/screenshotmodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class ScreenshotModuleNotAvaliable(modules.Module):
def write_nix_settings(
self, f, module_settings: models.ModuleSettings, priority: int
):
f.write(f' hardware.raspberry-pi."4".fkms-3d.enable = true;\n')
f.write(
f"""
services.xserver.displayManager.sddm.enable = true;
Expand Down
2 changes: 1 addition & 1 deletion controller/thymis_controller/modules/thymis.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ThymisDevice(modules.Module):
device_type = models.Setting(
name="thymis.config.device-type",
type="select-one",
options=["generic-x86_64", "raspberry-pi-4", "generic-aarch64"],
options=["generic-x86_64", "raspberry-pi-3", "raspberry-pi-4", "generic-aarch64"],
default="",
description="The device type of the thymis device.",
example="",
Expand Down
24 changes: 23 additions & 1 deletion devices.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,34 @@ let
};
nixpkgs.hostPlatform = "aarch64-linux";
};
raspberry-pi-3 = {
imports = [
inputs.nixos-generators.nixosModules.all-formats
#inputs.nixos-hardware.nixosModules.raspberry-pi-3
inputs.nixos-generators.nixosModules.sd-aarch64
];
formatConfigs = lib.mkForce {
sd-card-image = {
imports = [
inputs.nixos-generators.nixosModules.sd-aarch64
];
sdImage.compressImage = false;
fileExtension = ".img";
};
};
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];
nixpkgs.hostPlatform = "aarch64-linux";
};
raspberry-pi-4 = {
imports = [
inputs.nixos-generators.nixosModules.all-formats
inputs.nixos-hardware.nixosModules.raspberry-pi-4
inputs.nixos-generators.nixosModules.sd-aarch64

];
hardware.raspberry-pi."4".fkms-3d.enable = true;
formatConfigs = lib.mkForce {
Expand Down
42 changes: 21 additions & 21 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"device-type": "Device Type",
"device-type-options": {
"generic-x86_64": "Generic x86 Device (e.g. PC)",
"raspberry-pi-3": "Raspberry Pi 3",
"raspberry-pi-4": "Raspberry Pi 4",
"generic-aarch64": "Generic ARM64 Device"
},
Expand Down

0 comments on commit 12fd666

Please sign in to comment.