🚀 add barebones sway config

dev-docs
Moritz Böhme 2022-04-05 11:09:37 +02:00
parent be9f774d90
commit 0074ed43c1
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
2 changed files with 25 additions and 2 deletions

View File

@ -1,12 +1,12 @@
{ config, lib, pkgs, ... }:
let cfg = config.modules.desktop;
in {
imports = [ ./apps ./bspwm ./gtk.nix ./xmonad ];
imports = [ ./apps ./bspwm ./gtk.nix ./xmonad ./sway ];
options.modules.desktop = {
name = lib.mkOption {
default = "bspwm";
type = lib.types.enum [ "bspwm" "xmonad" ];
type = lib.types.enum [ "bspwm" "xmonad" "sway" ];
};
};

View File

@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.modules.desktop;
in {
config = mkIf (cfg.name == "sway") {
hardware.opengl = {
enable = true;
driSupport = true;
};
home-manager.users.moritz = {
wayland.windowManager.sway = {
enable = true;
terminal = "kitty";
menu = "wofi --show run";
bars = [{
fonts.size = 15.0;
positiom = "bottom";
}];
};
};
};
}