This commit is contained in:
janis 2026-07-28 16:56:36 +02:00
parent f425ff9a43
commit f9cccfdd3c
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8
4 changed files with 45 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{...}: {
imports = [
./alacritty.nix
./ghostty.nix
./common.nix
./desktop-apps.nix
./development

29
home/ghostty.nix Normal file
View file

@ -0,0 +1,29 @@
{lib, super-config, ...}:
let
# theme = import ../data/theme.nix {config = super-config; };
mkIfOrElse = cond: then_: else_: (lib.mkMerge [
(lib.mkIf cond then_)
(lib.mkIf (!cond) else_)
]);
in {
programs.ghostty = {
enable = true;
settings = {
font-family = "monospace";
font-size = 12;
title-report = true;
shell-integration = "zsh";
shell-integration-features = "no-cursor";
theme = "dark: Gruvbox Dark, light: Gruvbox Light";
window-theme = mkIfOrElse (super-config.darkMode == true) "dark" "light";
cursor-style = "block";
cursor-style-blink = false;
cursor-opacity = 0.8;
keybind = [
"ctrl+shift+enter=new_window"
];
};
};
}

View file

@ -2,6 +2,7 @@
imports = [
./boot.nix
./core.nix
./xdg.nix
./fonts.nix
./hardware.nix
./networking.nix

14
system/xdg.nix Normal file
View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
xdg-desktop-portal-xapp
];
config.common.default = "*";
};
}