home: don't enable i3 by default

This commit is contained in:
Antoine Martin 2024-03-03 03:03:03 +01:00
parent 69674b104e
commit 2b77681552
2 changed files with 6 additions and 2 deletions

View file

@ -34,7 +34,6 @@ in {
if config.my.gui.isNvidia if config.my.gui.isNvidia
then ["nvidia"] then ["nvidia"]
else options.services.xserver.videoDrivers.default; else options.services.xserver.videoDrivers.default;
windowManager.i3.enable = true;
layout = "fr"; layout = "fr";
xkbVariant = "us"; xkbVariant = "us";
libinput = { libinput = {

View file

@ -6,11 +6,12 @@
}: let }: let
inherit inherit
(lib) (lib)
mkEnableOption
mkIf mkIf
mkOptionDefault mkOptionDefault
; ;
isEnabled = config.my.home.x.enable; isEnabled = config.my.home.x.i3.enable;
myTerminal = myTerminal =
# FIXME: fix when terminal is setup in home # FIXME: fix when terminal is setup in home
@ -26,6 +27,10 @@
i3Theme = config.my.theme.i3Theme; i3Theme = config.my.theme.i3Theme;
in { in {
options.my.home.x.i3 = {
enable = mkEnableOption "i3wm configuration";
};
config = mkIf isEnabled { config = mkIf isEnabled {
my.home = { my.home = {
flameshot.enable = true; flameshot.enable = true;