Initial multi desktop setup

This commit is contained in:
2025-11-03 15:25:49 -05:00
parent dd4274f036
commit 58276cc8e0
6 changed files with 112 additions and 10 deletions

View File

@@ -6,6 +6,8 @@
./alacritty.nix
./firefox.nix
./git.nix
./hyprland.nix
./mango.nix
./nvf.nix
./packages.nix
# ./plasma.nix

10
modules/home/hyprland.nix Normal file
View File

@@ -0,0 +1,10 @@
{
...
}:
{
wayland.windowManager.hyprland = {
enable = true;
package = null;
portalPackage = null;
};
}

37
modules/home/mango.nix Normal file
View File

@@ -0,0 +1,37 @@
{
inputs,
...
}:
{
imports = [
inputs.mango.hmModules.mango
];
wayland.windowManager.mango = {
enable = true;
settings = ''
bind=SUPER,Return,spawn,alacritty
bind=SUPER,s,spawn,rofi -show drun
bind=SUPER,q,killclient
bind=SUPER+SHIFT,r,reload_config
bind=SUPER,t,setlayout,tile
bind=SUPER,v,setlayout,vertical_grid
bind=SUPER,c,setlayout,spiral
bind=SUPER,x,setlayout,scroller
bind=SUPER,n,switch_layout
bind=SUPER,a,togglegaps
bind=SUPER,Up,focusdir,up
bind=SUPER,Down,focusdir,down
bind=SUPER,Left,focusdir,left
bind=SUPER,Right,focusdir,right
bind=SUPER+SHIFT,Up,exchange_client,up
bind=SUPER+SHIFT,Down,exchange_client,down
bind=SUPER+SHIFT,Left,exchange_client,left
bind=SUPER+SHIFT,Right,exchange_client,right
'';
};
}

View File

@@ -5,6 +5,7 @@
imports = [
./agenix.nix
./boot.nix
./desktop.nix
./fileSystems.nix
./fonts.nix
./network.nix

View File

@@ -0,0 +1,62 @@
{
inputs,
pkgs,
...
}:
let
sddm-theme = inputs.silentSDDM.packages.${pkgs.system}.default;
in
{
imports = [
inputs.mango.nixosModules.mango
];
programs = {
hyprland = {
enable = true;
withUWSM = true;
};
mango.enable = true;
# uwsm = {
# enable = true;
# waylandCompositors = {
# mango = {
# prettyName = "Mango";
# comment = "Lightweight compositor based on dwl";
# binPath = "/run/current-system/sw/bin/mango";
# };
# };
# };
};
environment.systemPackages = [
sddm-theme
sddm-theme.test
];
services.displayManager = {
defaultSession = "mango";
sddm = {
enable = true;
package = pkgs.kdePackages.sddm;
theme = sddm-theme.pname;
extraPackages = sddm-theme.propagatedBuildInputs;
settings = {
General = {
GreeterEnvironment = "QML2_IMPORT_PATH=${sddm-theme}/share/sddm/themes/${sddm-theme.pname}/components/,QT_IM_MODULE=qtvirtualkeyboard";
InputMethod = "qtvirtualkeyboard";
};
};
};
};
# Enable the KDE Plasma Desktop Environment.
# displayManager.sddm.enable = true;
# desktopManager.plasma5.enable = true;
# Enable the System75 Cosmic Desktop Environment
# displayManager.cosmic-greeter.enable = true;
# desktopManager.cosmic = {
# enable = true;
# xwayland.enable = true;
# };
}

View File

@@ -19,16 +19,6 @@
# libinput.enable = true;
};
# Enable the KDE Plasma Desktop Environment.
# displayManager.sddm.enable = true;
# desktopManager.plasma6.enable = true;
displayManager.cosmic-greeter.enable = true;
desktopManager.cosmic = {
enable = true;
xwayland.enable = true;
};
# Enable CUPS to print documents.
printing = {
enable = true;