Files
samfelag/home/profiles/desktop.nix
2022-10-02 20:33:40 +02:00

45 lines
910 B
Nix

{ 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";
};
app.alacritty.enable = true;
};
home.packages = with pkgs; [
rofi
firefox
brightnessctl
playerctl
feh
] ++ optionals cfg.laptop laptopPkgs;
};
}