🚀 add barebones sway config
parent
be9f774d90
commit
0074ed43c1
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue