modules: create home/common module

This commit is contained in:
Nikodem Rabuliński 2024-01-22 20:40:43 +01:00
parent 90b454816c
commit ba8cfc1fd5
8 changed files with 144 additions and 28 deletions

View file

@ -0,0 +1,53 @@
{
config,
lib,
pkgs,
inputs,
...
}: {
_file = ./default.nix;
options.common.desktop = {
enable = lib.mkEnableOption "Common configuration for desktop machines";
};
config = lib.mkIf config.common.desktop.enable {
home.packages = with pkgs; [
nerdfonts
];
programs.firefox = {
enable = true;
package = let
firefox-pkgs = pkgs.extend inputs.firefox-darwin.overlay;
in
lib.mkIf pkgs.stdenv.isDarwin firefox-pkgs.firefox-bin;
};
programs.alacritty = {
enable = true;
settings = {
cursor.style.shape = "Beam";
window = {
option_as_alt = lib.mkIf pkgs.stdenv.isDarwin "Both";
decorations =
if pkgs.stdenv.isDarwin
then "Buttonless"
else "None";
};
};
};
programs.zellij = {
enable = true;
settings = {
keybinds = {
shared_except = {
_args = ["locked"];
unbind = "Ctrl q";
};
};
};
};
};
}