This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
AsaJS/devices/ideapad-slim-5/configuration.nix
2026-04-10 22:58:40 +07:00

92 lines
2.1 KiB
Nix
Executable file

{
libs,
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
./mount.nix
../../modules/features/system/upower.nix
(libs.root "/host/desktop/default.nix")
(libs.root "/home/asakiyuki/configuration.nix")
];
networking.hostName = "nixos";
networking.networkmanager.enable = true;
time.timeZone = "Asia/Ho_Chi_Minh";
nixpkgs.config.allowUnfree = true;
boot.kernelParams = [ "amd_pstate=active" ];
boot.kernelModules = [ "ideapad_laptop" ];
services.power-profiles-daemon.enable = true;
environment.systemPackages = with pkgs; [
lm_sensors
ryzenadj
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
device = {
flake-name = "ideapad-slim-5";
cursors = "aemeath";
dm.sddm.enable = true;
dm.gdm.enable = false;
de.kdePlasma.enable = false;
de.gnome.enable = false;
wm.niri.enable = false;
wm.hyprland.enable = true;
wm.hyprland.monitors = [
{
output = "eDP-1";
mode = "1920x1200@60";
position = "0x0";
scale = "1";
transform = "0";
bitdepth = 10;
# cm = "hdr";
# supports_wide_color = 1;
# supports_hdr = 1;
# sdr_min_luminance = 0;
# sdr_max_luminance = 400;
# sdr_eotf = 2;
# sdrbrightness = 1.0;
# sdrsaturation = 1.2;
}
];
bluetooth.enable = true;
flatpak.enable = true;
symlink = {
"SteamApps" = ".local/share/Steam/steamapps";
"Development/KDE-Widget" = ".local/share/plasma/plasmoids";
"Development/SplashScreen" = ".local/share/plasma/look-and-feel";
"Development/DesktopEffects" = ".local/share/kwin/effects";
};
programs = {
terminal = "ghostty";
obs-studio.enable = true;
nixcord.enable = true;
tmux.enable = true;
starship.enable = true;
fastfetch.enable = true;
cider-2.enable = true;
steam.enable = true;
};
};
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.extraModulePackages = [ pkgs.linuxPackages_latest.zenpower ];
system.stateVersion = "25.11";
}