nixos/programs/cardboard-wm: remove

It has a nixpkgs module now so it's fine to remove this.
This commit is contained in:
Gabriel Arazas 2024-03-28 18:48:53 +08:00
parent 173919dcf0
commit 12dfa258a0
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 0 additions and 57 deletions
modules/nixos

View File

@ -1,7 +1,6 @@
{
imports = [
./programs/blender.nix
./programs/cardboard-wm.nix
./programs/distrobox.nix
./programs/gnome-session
./programs/pop-launcher.nix

View File

@ -1,56 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.cardboard-wm;
cardboardPackage = cfg.package.overrideAttrs (super: rec {
passthru.providedSessions = [ "cardboard" ];
});
in
{
options.programs.cardboard-wm = {
enable =
lib.mkEnableOption "Cardboard, a scrollable tiling Wayland compositor";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.cardboard;
defaultText = lib.literalExpression "pkgs.cardboard";
description = ''
The derivation containing the {command}`cardboard` and
{command}`cutter` binary.
'';
};
extraOptions = lib.mkOption {
type = with lib.types; listOf str;
default = [ ];
description = "Command-line arguments to be passed to Cardboard.";
};
extraPackages = lib.mkOption {
type = with lib.types; listOf package;
default = [ ];
description = ''
Extra packages to be installed with this program.
'';
example = lib.literalExpression ''
with pkgs; [
waybar
eww
]
'';
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cardboardPackage ] ++ cfg.extraPackages;
security.polkit.enable = true;
services.xserver.displayManager.sessionPackages = [ cardboardPackage ];
hardware.opengl.enable = true;
programs.xwayland.enable = true;
programs.dconf.enable = true;
fonts.enableDefaultFonts = true;
xdg.portal.wlr.enable = true;
};
}