🚀 add barebones sway config
This commit is contained in:
parent
be9f774d90
commit
0074ed43c1
2 changed files with 25 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let cfg = config.modules.desktop;
|
let cfg = config.modules.desktop;
|
||||||
in {
|
in {
|
||||||
imports = [ ./apps ./bspwm ./gtk.nix ./xmonad ];
|
imports = [ ./apps ./bspwm ./gtk.nix ./xmonad ./sway ];
|
||||||
|
|
||||||
options.modules.desktop = {
|
options.modules.desktop = {
|
||||||
name = lib.mkOption {
|
name = lib.mkOption {
|
||||||
default = "bspwm";
|
default = "bspwm";
|
||||||
type = lib.types.enum [ "bspwm" "xmonad" ];
|
type = lib.types.enum [ "bspwm" "xmonad" "sway" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
23
modules/desktop/sway/default.nix
Normal file
23
modules/desktop/sway/default.nix
Normal 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";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue