modules: create home/common module
This commit is contained in:
parent
90b454816c
commit
ba8cfc1fd5
8 changed files with 144 additions and 28 deletions
53
modules/home/common/desktop/default.nix
Normal file
53
modules/home/common/desktop/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue