Initial multi desktop setup
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./hyprland.nix
|
||||||
|
./mango.nix
|
||||||
./nvf.nix
|
./nvf.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
# ./plasma.nix
|
# ./plasma.nix
|
||||||
|
|||||||
10
modules/home/hyprland.nix
Normal file
10
modules/home/hyprland.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = null;
|
||||||
|
portalPackage = null;
|
||||||
|
};
|
||||||
|
}
|
||||||
37
modules/home/mango.nix
Normal file
37
modules/home/mango.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./agenix.nix
|
./agenix.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
|
./desktop.nix
|
||||||
./fileSystems.nix
|
./fileSystems.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
|
|||||||
62
modules/system/desktop.nix
Normal file
62
modules/system/desktop.nix
Normal 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;
|
||||||
|
# };
|
||||||
|
}
|
||||||
@@ -19,16 +19,6 @@
|
|||||||
# libinput.enable = true;
|
# 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.
|
# Enable CUPS to print documents.
|
||||||
printing = {
|
printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user