diff options
| author | Dylan <boss@tehbox.org> | 2026-10-17 22:02:09 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-10-17 22:04:40 +1300 |
| commit | 008b591a0a5942ae42f4c07a5abbee4dbd2d0743 (patch) | |
| tree | 0ae88a36bc00ede3b43b31489adae633dc54e8cd /modules/teh-nix/xorg.nix | |
| parent | 280e1bbe5e733128a451260685cc8ecd10a042a3 (diff) | |
| download | nixos-configuration-008b591a0a5942ae42f4c07a5abbee4dbd2d0743.tar.gz nixos-configuration-008b591a0a5942ae42f4c07a5abbee4dbd2d0743.zip | |
feat: Formatting changes
Diffstat (limited to 'modules/teh-nix/xorg.nix')
| -rw-r--r-- | modules/teh-nix/xorg.nix | 98 |
1 files changed, 51 insertions, 47 deletions
diff --git a/modules/teh-nix/xorg.nix b/modules/teh-nix/xorg.nix index 17febd3..67b2c67 100644 --- a/modules/teh-nix/xorg.nix +++ b/modules/teh-nix/xorg.nix @@ -1,60 +1,64 @@ { inputs, ... }: { - flake.modules.nixos.teh-nix = - { config, lib, pkgs, ... }: - { - imports = [ - # inputs.YATwm.nixosModules.YATwm - ]; + flake.modules.nixos.teh-nix = + { + config, + lib, + pkgs, + ... + }: + { + imports = [ + # inputs.YATwm.nixosModules.YATwm + ]; - options.teh-nix.xorg = with lib; { - enable = mkEnableOption "Enable xorg"; - nvidia = mkOption { - type = types.bool; - default = true; - description = "Enable nvidia with xorg"; - }; - }; + options.teh-nix.xorg = with lib; { + enable = mkEnableOption "Enable xorg"; + nvidia = mkOption { + type = types.bool; + default = true; + description = "Enable nvidia with xorg"; + }; + }; - config = lib.mkIf config.teh-nix.xorg.enable { + config = lib.mkIf config.teh-nix.xorg.enable { - teh-nix.nvidia.enable = lib.mkIf config.teh-nix.xorg.nvidia (lib.mkDefault true); + teh-nix.nvidia.enable = lib.mkIf config.teh-nix.xorg.nvidia (lib.mkDefault true); - services.xserver = { - enable = true; + services.xserver = { + enable = true; - desktopManager = { - xterm.enable = false; - #default = "none"; - }; + desktopManager = { + xterm.enable = false; + #default = "none"; + }; - deviceSection = '' - Option "DRI" "2" - Option "TearFree" "true" - ''; + deviceSection = '' + Option "DRI" "2" + Option "TearFree" "true" + ''; - windowManager.i3 = { - enable = true; - package = pkgs.i3; - }; + windowManager.i3 = { + enable = true; + package = pkgs.i3; + }; - # windowManager.YATwm = { - # enable = true; - # package = inputs.YATwm.packages.x86_64-linux.YATwm; - # }; - }; - programs.i3lock.enable = true; + # windowManager.YATwm = { + # enable = true; + # package = inputs.YATwm.packages.x86_64-linux.YATwm; + # }; + }; + programs.i3lock.enable = true; - services.displayManager = { - #defaultSession = "none+i3"; - sddm.enable = true; - #sddm.theme = "catppuccin-macchiato"; - # ly.enable = true; - }; + services.displayManager = { + #defaultSession = "none+i3"; + sddm.enable = true; + #sddm.theme = "catppuccin-macchiato"; + # ly.enable = true; + }; - - services.xserver.xkb.layout = "us"; - services.xserver.xkb.options = "caps:super"; - }; - }; + services.xserver.xkb.layout = "us"; + services.xserver.xkb.options = "caps:super"; + }; + }; } |
