{ config, lib, pkgs, ... }: with lib; let cfg = config.samfelag.profiles.desktop; laptopPkgs = with pkgs; [ ]; in { options.samfelag.profiles.desktop = { enable = mkEnableOption "desktop profile"; laptop = mkOption { description = "Add packages required when machine is a laptop"; type = types.bool; default = false; }; }; config = mkIf cfg.enable { # - Dependencies ----------------------------- samfelag.modules = { desktop = { i3 = { enable = true; launcher.command = "${pkgs.rofi}/bin/rofi rofi -show run"; terminal.command = "${pkgs.alacritty}/bin/alacritty"; browser.command = "${pkgs.firefox}/bin/firefox"; }; polybar.enable = true; }; app.alacritty.enable = true; }; home.packages = with pkgs; [ rofi firefox brightnessctl playerctl feh ] ++ optionals cfg.laptop laptopPkgs; }; }