Test ghostty

This commit is contained in:
Oliver Davies 2024-12-31 01:12:57 +00:00
parent 0dde56cd3f
commit e12da9e59b
6 changed files with 58 additions and 2 deletions

View file

@ -208,6 +208,22 @@
"type": "github"
}
},
"nixpkgs-master": {
"locked": {
"lastModified": 1735606615,
"narHash": "sha256-j2QeXLGlydjd6gDSyHasBJ0OoPXFDSYgd0KbyVCnE3w=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c49743669a58a01d5978bf5cab134d2ae717696c",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1733384649,
@ -248,7 +264,8 @@
"nixos-hardware": "nixos-hardware",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs_3",
"nixpkgs-2405": "nixpkgs-2405"
"nixpkgs-2405": "nixpkgs-2405",
"nixpkgs-master": "nixpkgs-master"
}
},
"systems": {

View file

@ -14,6 +14,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
};

View file

@ -12,6 +12,7 @@
discord.enable = true;
espanso.enable = true;
flameshot.enable = true;
ghostty.enable = true;
gtk.enable = true;
slack.enable = true;

View file

@ -1,4 +1,4 @@
{ inputs, ... }:
{ ... }:
{
features = {

View file

@ -5,6 +5,7 @@
./discord.nix
./espanso.nix
./flameshot.nix
./ghostty.nix
./gtk.nix
./media
./slack.nix

View file

@ -0,0 +1,36 @@
{
config,
inputs,
lib,
system,
...
}:
with lib;
let
cfg = config.features.desktop.ghostty;
pkgs-master = inputs.nixpkgs-master.legacyPackages.${system};
in
{
options.features.desktop.ghostty.enable = mkEnableOption "Enable ghostty";
config = mkIf cfg.enable {
home.packages = [ pkgs-master.ghostty ];
xdg.configFile."ghostty/config".text = ''
background = #000000
# Disable ligatures.
font-feature = -calt
font-feature = -liga
font-feature = -dlig
window-decoration = false
window-padding-x = 10
window-padding-y = 10
'';
};
}