Add Sway as backup WM

This commit is contained in:
Paul-Henri Froidmont 2024-07-12 00:11:55 +02:00
parent 623e014b69
commit 72b28d88d2
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 7 additions and 6 deletions

View file

@ -2,7 +2,7 @@
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
modules = { modules = {
desktop.hyprland.enable = true; desktop.wm.enable = true;
editor = { editor = {
vim.enable = true; vim.enable = true;
emacs.enable = true; emacs.enable = true;

View file

@ -2,7 +2,7 @@
imports = [ ./hardware-configuration.nix ]; imports = [ ./hardware-configuration.nix ];
modules = { modules = {
desktop.hyprland.enable = true; desktop.wm.enable = true;
editor = { editor = {
vim.enable = true; vim.enable = true;
emacs.enable = true; emacs.enable = true;

View file

@ -9,7 +9,8 @@ let
"https://raw.githubusercontent.com/AngelJumbo/gruvbox-wallpapers/main/wallpapers/irl/houseonthesideofalake.jpg"; "https://raw.githubusercontent.com/AngelJumbo/gruvbox-wallpapers/main/wallpapers/irl/houseonthesideofalake.jpg";
sha256 = "sha256-obKI4qZvucogqRCl51lwV9X8SRaMqcbBwWMfc9TupIo="; sha256 = "sha256-obKI4qZvucogqRCl51lwV9X8SRaMqcbBwWMfc9TupIo=";
}; };
in { in
{
options.modules.desktop = { options.modules.desktop = {
wallpaper = mkOption { wallpaper = mkOption {
@ -18,7 +19,7 @@ in {
}; };
}; };
config = mkIf config.modules.desktop.hyprland.enable { config = mkIf config.modules.desktop.wm.enable {
fonts = { fonts = {
packages = with pkgs.unstable; [ packages = with pkgs.unstable; [

View file

@ -4,13 +4,13 @@ with lib;
with lib.my; with lib.my;
let let
cfg = config.modules.desktop.hyprland; cfg = config.modules.desktop.wm;
term = "${ term = "${
config.home-manager.users.${config.user.name}.programs.kitty.package config.home-manager.users.${config.user.name}.programs.kitty.package
}/bin/kitty"; }/bin/kitty";
in in
{ {
options.modules.desktop.hyprland = { enable = mkBoolOpt false; }; options.modules.desktop.wm = { enable = mkBoolOpt false; };
config = mkIf cfg.enable { config = mkIf cfg.enable {