Skip to content

Commit

Permalink
Merge pull request #412 from Jovian-Experiments/modules-cleanup
Browse files Browse the repository at this point in the history
Modules cleanup
  • Loading branch information
K900 authored Sep 27, 2024
2 parents 03aa054 + ce8ea31 commit 3390ff2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules/devices/steamdeck/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ in
boot.kernelPackages = mkDefault pkgs.linuxPackages_jovian;
# see https://github.com/Jovian-Experiments/steamos-customizations-jupiter/blob/jupiter-20240709.1/misc/modules-load.d/hid-playstation.conf
boot.kernelModules = ["hid_playstation"];
# Deck specific, not needed on latest non-vendor kernels
boot.kernelParams = ["fbcon=rotate:1"];
}
]);
}
3 changes: 2 additions & 1 deletion modules/steamos/boot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ in
# Jovian: intentionally not using this one, as many people run
# setups with LUKS password prompts on fbcon
# "fbcon=vc:4-6"
"fbcon=rotate:1"
# Jovian: this is Steam Deck specific so it goes into the Deck profile
# "fbcon=rotate:1"
];
})
];
Expand Down
10 changes: 9 additions & 1 deletion modules/steamos/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ in
— holo-dmi-rules 1.0
'';
};
enableZram = mkOption {
default = cfg.useSteamOSConfig;
defaultText = lib.literalExpression "config.jovian.steamos.useSteamOSConfig";
type = types.bool;
description = ''
Whether to enable SteamOS-like zram swap configuration
'';
};
};
};

Expand All @@ -31,7 +39,7 @@ in
"z /sys/class/dmi/id/product_serial 440 root wheel - -"
];
})
(mkIf (cfg.useSteamOSConfig) {
(mkIf (cfg.enableZram) {
# Match vendor settings: https://github.com/Jovian-Experiments/PKGBUILDs-mirror/blob/holo-main/holo-zram-swap-0.1-0/zram-generator.conf
zramSwap = {
enable = lib.mkDefault true;
Expand Down

0 comments on commit 3390ff2

Please sign in to comment.