mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
parent
89adfc9f01
commit
2e7935767f
2 changed files with 9 additions and 5 deletions
|
@ -11,6 +11,13 @@ in {
|
|||
programs.alacritty = {
|
||||
enable = mkEnableOption "Alacritty";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.alacritty;
|
||||
defaultText = literalExample "pkgs.alacritty";
|
||||
description = "The Alacritty package to install.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
|
@ -41,7 +48,7 @@ in {
|
|||
|
||||
config = mkMerge [
|
||||
(mkIf cfg.enable {
|
||||
home.packages = [ pkgs.alacritty ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."alacritty/alacritty.yml" = mkIf (cfg.settings != { }) {
|
||||
text =
|
||||
|
|
|
@ -6,6 +6,7 @@ with lib;
|
|||
config = {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
package = pkgs.writeScriptBin "dummy-alacritty" "";
|
||||
|
||||
settings = {
|
||||
window.dimensions = {
|
||||
|
@ -21,10 +22,6 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(self: super: { alacritty = pkgs.writeScriptBin "dummy-alacritty" ""; })
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/alacritty/alacritty.yml \
|
||||
|
|
Loading…
Reference in a new issue