add symlink option

This commit is contained in:
Asaki Yuki 2026-04-10 22:58:40 +07:00
parent e829bedfe3
commit aedfd070b9
8 changed files with 71 additions and 37 deletions

View file

@ -45,10 +45,35 @@
wm.niri.enable = false; wm.niri.enable = false;
wm.hyprland.enable = true; 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; bluetooth.enable = true;
flatpak.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 = { programs = {
terminal = "ghostty"; terminal = "ghostty";
obs-studio.enable = true; obs-studio.enable = true;

View file

@ -167,6 +167,6 @@
}; };
}; };
chromium.enable = false; chromium.enable = true;
}; };
} }

View file

@ -7,7 +7,6 @@
wayland.windowManager.hyprland = lib.mkIf osconfig.device.wm.hyprland.enable { wayland.windowManager.hyprland = lib.mkIf osconfig.device.wm.hyprland.enable {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
}; };
} }

View file

@ -9,7 +9,7 @@
]; ];
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
monitor = osconfig.device.wm.hyprland.monitors; monitorv2 = osconfig.device.wm.hyprland.monitors;
}; };
} }

View file

@ -1,11 +1,11 @@
{ osconfig, ... }: { osconfig, config, ... }:
{ {
wayland.windowManager.hyprland.settings.bind = [ wayland.windowManager.hyprland.settings.bind = [
"CTRL ALT, T, exec, ${osconfig.device.programs.terminal}" "CTRL ALT, T, exec, ${osconfig.device.programs.terminal}"
"SUPER SHIFT, L, exit," "SUPER SHIFT, L, exit,"
"SUPER SHIFT, TAB, togglefloating," "SUPER SHIFT, TAB, togglefloating,"
"SUPER SHIFT, S, exec, hyprshot -m region -o '/home/asakiyuki/Pictures/Screenshots/' -z" "SUPER SHIFT, S, exec, hyprshot -m region -o '${config.home.homeDirectory}/Pictures/Screenshots/' -z"
"SUPER, J, togglesplit," "SUPER, J, togglesplit,"
"SUPER, E, exec, dolphin" "SUPER, E, exec, dolphin"

View file

@ -5,6 +5,7 @@
./environment.nix ./environment.nix
./programs.nix ./programs.nix
./hardware.nix ./hardware.nix
./file.nix
]; ];
options.device = { options.device = {

View file

@ -1,4 +1,5 @@
{ lib, ... }: { { lib, ... }:
{
options.device = { options.device = {
dm = { dm = {
sddm = { sddm = {
@ -23,8 +24,8 @@
hyprland = { hyprland = {
enable = lib.mkEnableOption "hyprland"; enable = lib.mkEnableOption "hyprland";
monitors = lib.mkOption { monitors = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.attrs;
default = [ "eDP-1, 1920x1200@60, 0x0, 1" ]; default = [];
description = "Monitors settings"; description = "Monitors settings";
}; };
}; };

8
options/desktop/file.nix Normal file
View file

@ -0,0 +1,8 @@
{ lib, ... }: {
options.device = {
symlink = lib.mkOption {
default = {};
type = lib.type.attrsOf lib.types.str;
};
};
}