add symlink option
This commit is contained in:
parent
e829bedfe3
commit
aedfd070b9
8 changed files with 71 additions and 37 deletions
|
|
@ -45,10 +45,35 @@
|
|||
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -167,6 +167,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
chromium.enable = false;
|
||||
chromium.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
wayland.windowManager.hyprland = lib.mkIf osconfig.device.wm.hyprland.enable {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
];
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = osconfig.device.wm.hyprland.monitors;
|
||||
monitorv2 = osconfig.device.wm.hyprland.monitors;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{ osconfig, ... }:
|
||||
{ osconfig, config, ... }:
|
||||
{
|
||||
wayland.windowManager.hyprland.settings.bind = [
|
||||
"CTRL ALT, T, exec, ${osconfig.device.programs.terminal}"
|
||||
|
||||
"SUPER SHIFT, L, exit,"
|
||||
"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, E, exec, dolphin"
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
./environment.nix
|
||||
./programs.nix
|
||||
./hardware.nix
|
||||
./file.nix
|
||||
];
|
||||
|
||||
options.device = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ lib, ... }: {
|
||||
{ lib, ... }:
|
||||
{
|
||||
options.device = {
|
||||
dm = {
|
||||
sddm = {
|
||||
|
|
@ -23,8 +24,8 @@
|
|||
hyprland = {
|
||||
enable = lib.mkEnableOption "hyprland";
|
||||
monitors = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [ "eDP-1, 1920x1200@60, 0x0, 1" ];
|
||||
type = lib.types.listOf lib.types.attrs;
|
||||
default = [];
|
||||
description = "Monitors settings";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
8
options/desktop/file.nix
Normal file
8
options/desktop/file.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ lib, ... }: {
|
||||
options.device = {
|
||||
symlink = lib.mkOption {
|
||||
default = {};
|
||||
type = lib.type.attrsOf lib.types.str;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue