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.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;
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
chromium.enable = false;
|
chromium.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
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 = [
|
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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
./environment.nix
|
./environment.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
|
./file.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.device = {
|
options.device = {
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,34 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }:
|
||||||
options.device = {
|
{
|
||||||
dm = {
|
options.device = {
|
||||||
sddm = {
|
dm = {
|
||||||
enable = lib.mkEnableOption "sddm";
|
sddm = {
|
||||||
theme = lib.mkOption {
|
enable = lib.mkEnableOption "sddm";
|
||||||
type = lib.types.str;
|
theme = lib.mkOption {
|
||||||
default = "hyprland_kath";
|
type = lib.types.str;
|
||||||
description = "astronaut theme name";
|
default = "hyprland_kath";
|
||||||
};
|
description = "astronaut theme name";
|
||||||
};
|
|
||||||
|
|
||||||
gdm.enable = lib.mkEnableOption "gdm";
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
de = {
|
gdm.enable = lib.mkEnableOption "gdm";
|
||||||
kdePlasma.enable = lib.mkEnableOption "kde plasma";
|
|
||||||
gnome.enable = lib.mkEnableOption "gnome";
|
|
||||||
};
|
|
||||||
|
|
||||||
wm = {
|
|
||||||
niri.enable = lib.mkEnableOption "niri";
|
|
||||||
hyprland = {
|
|
||||||
enable = lib.mkEnableOption "hyprland";
|
|
||||||
monitors = lib.mkOption {
|
|
||||||
type = lib.types.listOf lib.types.str;
|
|
||||||
default = [ "eDP-1, 1920x1200@60, 0x0, 1" ];
|
|
||||||
description = "Monitors settings";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
de = {
|
||||||
|
kdePlasma.enable = lib.mkEnableOption "kde plasma";
|
||||||
|
gnome.enable = lib.mkEnableOption "gnome";
|
||||||
|
};
|
||||||
|
|
||||||
|
wm = {
|
||||||
|
niri.enable = lib.mkEnableOption "niri";
|
||||||
|
hyprland = {
|
||||||
|
enable = lib.mkEnableOption "hyprland";
|
||||||
|
monitors = lib.mkOption {
|
||||||
|
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