2024-10-14 23:53:48 -04:00
|
|
|
# Lenovo Legion Go
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
self,
|
|
|
|
...
|
2024-10-19 14:43:33 -04:00
|
|
|
}: {
|
2024-10-14 23:53:48 -04:00
|
|
|
imports = [
|
|
|
|
./home.nix
|
|
|
|
./secrets.nix
|
|
|
|
./stylix.nix
|
|
|
|
(import ./../../disko/luks-btrfs-subvolumes.nix {disks = ["/dev/nvme0n1"];})
|
|
|
|
self.inputs.jovian.nixosModules.default
|
|
|
|
self.inputs.nix-gaming.nixosModules.pipewireLowLatency
|
|
|
|
self.inputs.nix-gaming.nixosModules.platformOptimizations
|
|
|
|
self.nixosModules.common-base
|
|
|
|
self.nixosModules.common-locale
|
|
|
|
self.nixosModules.common-mauville-share
|
|
|
|
self.nixosModules.common-nix
|
|
|
|
self.nixosModules.common-pkgs
|
|
|
|
self.nixosModules.common-tailscale
|
|
|
|
self.nixosModules.common-wifi-profiles
|
|
|
|
self.nixosModules.hw-lenovo-legion-go
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd.systemd.enable = true;
|
|
|
|
|
|
|
|
lanzaboote = {
|
|
|
|
enable = true;
|
|
|
|
pkiBundle = "/etc/secureboot";
|
|
|
|
};
|
|
|
|
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
systemd-boot = {
|
|
|
|
enable = lib.mkForce false;
|
|
|
|
consoleMode = "1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
2024-10-19 14:43:33 -04:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
heroic
|
2024-10-14 23:53:48 -04:00
|
|
|
hhd-ui
|
2024-10-19 14:43:33 -04:00
|
|
|
lutris
|
2024-10-14 23:53:48 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
variables.GDK_SCALE = "2";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.pulseaudio.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
jovian = {
|
|
|
|
decky-loader = {
|
|
|
|
enable = true;
|
|
|
|
user = "aly";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.has.amd.gpu = true;
|
|
|
|
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
autoStart = true;
|
2024-10-25 21:08:40 -04:00
|
|
|
desktopSession = "plasmawayland";
|
2024-10-21 23:55:37 -04:00
|
|
|
|
|
|
|
environment = {
|
2024-10-22 00:16:50 -04:00
|
|
|
STEAM_EXTRA_COMPAT_TOOLS_PATHS = lib.makeSearchPathOutput "steamcompattool" "" config.programs.steam.extraCompatPackages;
|
2024-10-21 23:55:37 -04:00
|
|
|
STEAM_GAMESCOPE_COLOR_MANAGED = "0";
|
|
|
|
};
|
|
|
|
|
2024-10-14 23:53:48 -04:00
|
|
|
user = "aly";
|
|
|
|
};
|
|
|
|
|
|
|
|
steamos.useSteamOSConfig = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "pacifidlog";
|
2024-10-19 14:43:33 -04:00
|
|
|
nixpkgs.overlays = [self.overlays.tablet];
|
2024-10-14 23:53:48 -04:00
|
|
|
programs.steam.platformOptimizations.enable = true;
|
|
|
|
|
|
|
|
services = {
|
|
|
|
handheld-daemon = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
package = with pkgs;
|
|
|
|
handheld-daemon.overrideAttrs (oldAttrs: {
|
|
|
|
propagatedBuildInputs =
|
|
|
|
oldAttrs.propagatedBuildInputs
|
2024-10-19 14:43:33 -04:00
|
|
|
++ [pkgs.adjustor];
|
2024-10-14 23:53:48 -04:00
|
|
|
});
|
2024-10-19 14:43:33 -04:00
|
|
|
|
|
|
|
user = "aly";
|
2024-10-14 23:53:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
pipewire.lowLatency = {
|
|
|
|
enable = true;
|
|
|
|
quantum = 256;
|
|
|
|
rate = 48000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "24.11";
|
2024-10-19 14:43:33 -04:00
|
|
|
systemd.services.handheld-daemon.path = with pkgs; [hhd-ui lsof];
|
2024-10-14 23:53:48 -04:00
|
|
|
zramSwap.memoryPercent = 100;
|
|
|
|
|
|
|
|
ar = {
|
|
|
|
apps = {
|
|
|
|
firefox.enable = true;
|
|
|
|
steam.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-10-25 21:08:40 -04:00
|
|
|
desktop.kde.enable = true;
|
2024-10-21 00:15:04 -04:00
|
|
|
laptopMode = true;
|
2024-10-17 22:17:20 -04:00
|
|
|
services.flatpak.enable = true;
|
2024-10-14 23:53:48 -04:00
|
|
|
|
|
|
|
users.aly = {
|
|
|
|
enable = true;
|
|
|
|
password = "$y$j9T$CXjk5Z9e2PXbSsWh5CK.81$I9Hm/Oa4KcYMqPi8KMBfsEv5NzoXCgaCK5xhyGeikH7";
|
|
|
|
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
certFile = config.age.secrets.syncthingCert.path;
|
|
|
|
keyFile = config.age.secrets.syncthingKey.path;
|
|
|
|
syncMusic = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|