Add ghostty & fixes

This commit is contained in:
2026-02-18 12:10:59 +01:00
parent ce81e66652
commit 193cc6b9cd
9 changed files with 55 additions and 42 deletions
Generated
+1 -22
View File
@@ -199,28 +199,7 @@
"nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable",
"rust-overlay": "rust-overlay"
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1771297684,
"narHash": "sha256-wieWskQxZLPlNXX06JEB0bMoS/ZYQ89xBzF0RL9lyLs=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "755d3669699a7c62aef35af187d75dc2728cfd85",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},
-6
View File
@@ -23,10 +23,6 @@
homebrew-core.flake = false;
homebrew-cask.url = "github:homebrew/homebrew-cask";
homebrew-cask.flake = false;
# Rust Overlay
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
@@ -38,7 +34,6 @@
import-tree,
home-manager,
nix-homebrew,
rust-overlay,
homebrew-core,
homebrew-cask,
nixpkgs-unstable,
@@ -82,7 +77,6 @@
specialArgs = {
self = self;
import-tree = import-tree;
rust-overlay = rust-overlay;
home-manager = home-manager;
homebrew-core = homebrew-core;
homebrew-cask = homebrew-cask;
+14 -1
View File
@@ -1,4 +1,4 @@
{ import-tree, ... }:
{ lib, import-tree, ... }:
{
home-manager.users.alistreaza = {
imports = [
@@ -9,6 +9,17 @@
home = {
username = "alistreaza";
homeDirectory = /Users/alistreaza;
sessionVariables = {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
};
file = {
"$HOME/.config/ghostty/config" = {
source = lib.file.mkOutOfStoreSymlink ./config/ghostty;
};
};
};
# Shell apps
@@ -19,7 +30,9 @@
# Nix & languages env deps
home.env.nix.enable = true;
home.env.jdk.enable = true;
home.env.rust.enable = true;
home.env.python.enable = true;
# No Home Application Folders
targets.darwin.linkApps.enable = false;
+11
View File
@@ -0,0 +1,11 @@
# macOS specific
macos-titlebar-style = "tabs"
# Window padding & size
window-padding-x = 8
window-padding-y = 0,2
# Themes
background-blur=true
background-opacity = 0.75
theme = Spacegray Eighties
+1 -1
View File
@@ -4,7 +4,7 @@
nixpkgs.hostPlatform = "aarch64-darwin";
# Homebrew apps
os.homebrew.iterm.enable = true;
os.homebrew.ghostty.enable = true;
os.homebrew.zed.enable = true;
os.homebrew.jetbrain.enable = true;
os.homebrew.iina.enable = true;
+5
View File
@@ -19,5 +19,10 @@ in
maven
];
home.sessionVariables = {
JAVA_HOME = "${pkgs.jdk25_headless}";
M2_HOME = "${config.home.sessionVariables.XDG_DATA_HOME}/m2";
};
};
}
+6 -6
View File
@@ -14,12 +14,12 @@ in
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
rust-bin.stable.latest.default.override
{
extensions = [ "rust-src" ];
}
];
home.packages = with pkgs; [ rustup ];
home.sessionVariables = {
CARGO_HOME = "${config.home.sessionVariables.XDG_DATA_HOME}/cargo";
RUSTUP_HOME = "${config.home.sessionVariables.XDG_DATA_HOME}/rustup";
};
};
}
+17
View File
@@ -0,0 +1,17 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.homebrew.ghostty;
in
{
options.os.homebrew.ghostty = {
enable = mkEnableOption "System iterm homebrew service";
};
config = mkIf cfg.enable {
homebrew.casks = [
"ghostty"
];
};
}
-6
View File
@@ -1,6 +0,0 @@
{ rust-overlay, ... }:
{
nixpkgs.overlays = [
rust-overlay.overlays.default
];
}