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/host/desktop/device.nix
2026-04-14 01:15:18 +07:00

103 lines
2.8 KiB
Nix

{
lib,
libs,
pkgs,
...
}: let
ENABLE_HDR = false;
in {
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;
}
// lib.optionalAttrs ENABLE_HDR {
bitdepth = 10;
cm = "hdr";
supports_wide_color = 1;
supports_hdr = 1;
sdrbrightness = 1.0;
sdrsaturation = 1.0;
sdr_min_luminance = 0.005;
sdr_max_luminance = 200;
min_luminance = 0.0005;
max_luminance = 400;
max_avg_luminance = 250;
sdr_eotf = 2;
}
)
];
bluetooth.enable = true;
flatpak.enable = true;
files = {
force = {
".config/dolphinrc" = true;
};
mkForce = {
".mozilla/firefox/default/search.json.mozlz4" = true;
};
source = {
".config/qt5ct/colors/Catppuccin-Mocha.conf" = "${pkgs.catppuccin-qt5ct}/share/qt5ct/colors/catppuccin-mocha-sapphire.conf";
".config/qt6ct/colors/Catppuccin-Mocha.conf" = "${pkgs.catppuccin-qt5ct}/share/qt6ct/colors/catppuccin-mocha-sapphire.conf";
".config/dolphinrc" = libs.root "/configs/dolphinrc";
".local/share/kio/servicemenus/copy-server-public-url.desktop" =
libs.root "/configs/services-menu/copy-server-public-url.desktop";
".local/share/kio/servicemenus/open-with-code.desktop" =
libs.root "/configs/services-menu/open-with-code.desktop";
".local/share/kio/servicemenus/open-with-nvim.desktop" =
libs.root "/configs/services-menu/open-with-nvim.desktop";
".local/share/kio/servicemenus/open-with-antigravity.desktop" =
libs.root "/configs/services-menu/open-with-antigravity.desktop";
".local/share/kio/servicemenus/open-ghostty-here.desktop" =
libs.root "/configs/services-menu/open-ghostty-here.desktop";
};
symlink = {
"SteamApps" = ".local/share/Steam/steamapps";
"Development/Quickshell" = ".config/quickshell";
# "Development/KDE-Widget" = ".local/share/plasma/plasmoids";
# "Development/SplashScreen" = ".local/share/plasma/look-and-feel";
# "Development/DesktopEffects" = ".local/share/kwin/effects";
};
};
programs = {
terminal = {
enable = true;
name = "ghostty";
};
obs-studio.enable = true;
nixcord.enable = true;
tmux.enable = true;
starship.enable = true;
fastfetch.enable = true;
cider-2.enable = true;
steam.enable = true;
};
};
}