Compare commits
5 commits
c1e923ef3c
...
9500a28485
Author | SHA1 | Date | |
---|---|---|---|
9500a28485 | |||
2be4c7cfbd | |||
435887f016 | |||
52c55b97c4 | |||
54817e4d70 |
7 changed files with 13 additions and 27 deletions
|
@ -56,11 +56,6 @@
|
||||||
inherit stable unstable staging-next;
|
inherit stable unstable staging-next;
|
||||||
|
|
||||||
### Packages
|
### Packages
|
||||||
# TODO: Remove when GTK > 4.16 in unstable
|
|
||||||
# BUG: v5.4 is not compatible with GTK < 4.16
|
|
||||||
# https://github.com/lassekongo83/adw-gtk3/releases/tag/v5.4
|
|
||||||
adw-gtk3 = stable.adw-gtk3;
|
|
||||||
|
|
||||||
# BUG: Build tests often fail on unstable
|
# BUG: Build tests often fail on unstable
|
||||||
# https://github.com/NixOS/nixpkgs/issues/333946
|
# https://github.com/NixOS/nixpkgs/issues/333946
|
||||||
fprintd = stable.fprintd;
|
fprintd = stable.fprintd;
|
||||||
|
@ -69,19 +64,6 @@
|
||||||
# https://github.com/FreeRDP/FreeRDP/issues/10784
|
# https://github.com/FreeRDP/FreeRDP/issues/10784
|
||||||
freerdp3 = stable.freerdp3;
|
freerdp3 = stable.freerdp3;
|
||||||
|
|
||||||
# TODO: Exclusively use module packages instead of overlays where possible
|
|
||||||
### Hypr*
|
|
||||||
# hypridle = inputs.hypridle.packages.${prev.system}.default;
|
|
||||||
# hyprland = inputs.hyprland.packages.${prev.system}.default;
|
|
||||||
# hyprlock = inputs.hyprlock.packages.${prev.system}.default;
|
|
||||||
|
|
||||||
# hyprlandPlugins = {
|
|
||||||
# hyprbars = inputs.hyprland-plugins.packages.${prev.system}.hyprbars;
|
|
||||||
# };
|
|
||||||
|
|
||||||
### Sway
|
|
||||||
sway = unstable.swayfx;
|
|
||||||
|
|
||||||
### Development
|
### Development
|
||||||
#// ciscoPacketTracer8 = local.ciscoPacketTracer8;
|
#// ciscoPacketTracer8 = local.ciscoPacketTracer8;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,10 +30,10 @@
|
||||||
|
|
||||||
vm.passthrough = {
|
vm.passthrough = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
blacklist = true;
|
||||||
driver = "amdgpu";
|
driver = "amdgpu";
|
||||||
guest = "myndows";
|
guest = "myndows";
|
||||||
id = "1002:73df";
|
id = "1002:73df";
|
||||||
init = true;
|
|
||||||
intel = true;
|
intel = true;
|
||||||
node = "pci_0000_03_00_0";
|
node = "pci_0000_03_00_0";
|
||||||
};
|
};
|
||||||
|
|
|
@ -163,11 +163,13 @@ in {
|
||||||
(key "WheelScrollRight" "Mod+Shift" move-column-right-or-to-monitor-right)
|
(key "WheelScrollRight" "Mod+Shift" move-column-right-or-to-monitor-right)
|
||||||
(key "WheelScrollUp" "Mod" focus-window-or-workspace-up)
|
(key "WheelScrollUp" "Mod" focus-window-or-workspace-up)
|
||||||
(key "WheelScrollUp" "Mod+Shift" move-window-up-or-to-workspace-up)
|
(key "WheelScrollUp" "Mod+Shift" move-window-up-or-to-workspace-up)
|
||||||
#// (key "X" "Mod" switch-preset-column-width)
|
|
||||||
(key "X" "Mod" (set-column-width "+10%"))
|
(key "X" "Mod" (set-column-width "+10%"))
|
||||||
|
(key "X" "Mod+Ctrl" (set-column-width "100%"))
|
||||||
|
(key "X" "Mod+Ctrl+Shift" (set-window-height "100%"))
|
||||||
(key "X" "Mod+Shift" (set-window-height "+10%"))
|
(key "X" "Mod+Shift" (set-window-height "+10%"))
|
||||||
#// (key "Z" "Mod" switch-preset-window-height)
|
|
||||||
(key "Z" "Mod" (set-column-width "-10%"))
|
(key "Z" "Mod" (set-column-width "-10%"))
|
||||||
|
(key "Z" "Mod+Ctrl" (set-column-width "30%"))
|
||||||
|
(key "Z" "Mod+Ctrl+Shift" (set-window-height "30%"))
|
||||||
(key "Z" "Mod+Shift" (set-window-height "-10%"))
|
(key "Z" "Mod+Shift" (set-window-height "-10%"))
|
||||||
|
|
||||||
# BUG: Release binds execute with all binds involving that modifier
|
# BUG: Release binds execute with all binds involving that modifier
|
||||||
|
|
|
@ -11,6 +11,8 @@ in {
|
||||||
|
|
||||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
||||||
# https://github.com/WillPower3309/swayfx
|
# https://github.com/WillPower3309/swayfx
|
||||||
|
programs.sway.package = pkgs.swayfx;
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
# BUG: DRM build failure
|
# BUG: DRM build failure
|
||||||
# https://github.com/nix-community/home-manager/issues/5379
|
# https://github.com/nix-community/home-manager/issues/5379
|
||||||
|
@ -19,7 +21,7 @@ in {
|
||||||
# Polyfill home-manager wrappers
|
# Polyfill home-manager wrappers
|
||||||
# https://github.com/nix-community/home-manager/blob/master/modules/services/window-managers/i3-sway/sway.nix#L334
|
# https://github.com/nix-community/home-manager/blob/master/modules/services/window-managers/i3-sway/sway.nix#L334
|
||||||
package = with config.home-manager.users.${config.custom.username}.wayland.windowManager.sway;
|
package = with config.home-manager.users.${config.custom.username}.wayland.windowManager.sway;
|
||||||
pkgs.sway.override {
|
config.programs.sway.package.override {
|
||||||
extraSessionCommands = extraSessionCommands;
|
extraSessionCommands = extraSessionCommands;
|
||||||
extraOptions = extraOptions;
|
extraOptions = extraOptions;
|
||||||
withBaseWrapper = wrapperFeatures.base;
|
withBaseWrapper = wrapperFeatures.base;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";
|
||||||
onlyoffice-desktopeditors = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --system-title-bar --xdg-desktop-portal";
|
onlyoffice-desktopeditors = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --system-title-bar --xdg-desktop-portal";
|
||||||
|
|
||||||
cfg = config.custom.programs.onlyoffice;
|
cfg = config.custom.programs.onlyoffice;
|
||||||
|
|
|
@ -42,13 +42,13 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
control-center-height = builtins.floor (config.custom.height / 2);
|
control-center-height = builtins.floor (config.custom.height / 2);
|
||||||
control-center-positionY = "bottom";
|
control-center-positionY = "bottom";
|
||||||
control-center-width = builtins.floor (1000 / config.custom.scale);
|
control-center-width = builtins.floor (750 * config.custom.scale);
|
||||||
fit-to-screen = false;
|
fit-to-screen = false;
|
||||||
hide-on-clear = true;
|
hide-on-clear = true;
|
||||||
notification-2fa-action = false;
|
notification-2fa-action = false;
|
||||||
notification-icon-size = 32;
|
notification-icon-size = 32;
|
||||||
#// notification-inline-replies = true;
|
#// notification-inline-replies = true;
|
||||||
notification-window-width = builtins.floor (750 / config.custom.scale);
|
notification-window-width = builtins.floor (500 * config.custom.scale);
|
||||||
positionX = "center";
|
positionX = "center";
|
||||||
positionY = "top";
|
positionY = "top";
|
||||||
timeout = 5; # normal
|
timeout = 5; # normal
|
||||||
|
|
|
@ -17,10 +17,10 @@ in {
|
||||||
|
|
||||||
passthrough = {
|
passthrough = {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
|
blacklist = mkOption {default = false;};
|
||||||
driver = mkOption {default = null;}; #?? lspci -k
|
driver = mkOption {default = null;}; #?? lspci -k
|
||||||
guest = mkOption {default = null;}; #?? virsh list --all
|
guest = mkOption {default = null;}; #?? virsh list --all
|
||||||
id = mkOption {default = null;}; #?? lspci -nn
|
id = mkOption {default = null;}; #?? lspci -nn
|
||||||
init = mkOption {default = false;};
|
|
||||||
intel = mkOption {default = false;};
|
intel = mkOption {default = false;};
|
||||||
node = mkOption {default = null;}; #?? virsh nodedev-list
|
node = mkOption {default = null;}; #?? virsh nodedev-list
|
||||||
};
|
};
|
||||||
|
@ -156,7 +156,7 @@ in {
|
||||||
|
|
||||||
boot = mkIf cfg.passthrough.enable {
|
boot = mkIf cfg.passthrough.enable {
|
||||||
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Isolating_the_GPU
|
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Isolating_the_GPU
|
||||||
blacklistedKernelModules = mkIf cfg.passthrough.init [cfg.passthrough.driver];
|
blacklistedKernelModules = mkIf cfg.passthrough.blacklist [cfg.passthrough.driver];
|
||||||
|
|
||||||
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Enabling_IOMMU
|
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Enabling_IOMMU
|
||||||
kernelParams = mkIf cfg.passthrough.intel ["intel_iommu=on"];
|
kernelParams = mkIf cfg.passthrough.intel ["intel_iommu=on"];
|
||||||
|
|
Loading…
Add table
Reference in a new issue