Skip to content

Commit

Permalink
Remove alacritty
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Dec 26, 2024
1 parent ce4adcf commit b378e30
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 43 deletions.
185 changes: 156 additions & 29 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
inputs = {
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
fh = { url = "https://flakehub.com/f/DeterminateSystems/fh/*"; inputs.nixpkgs.follows = "nixpkgs"; };
ghostty.url = "github:ghostty-org/ghostty";
ghostty-module.url = "github:clo4/ghostty-hm-module";
jelly = { url = "github:lucperkins/jelly"; inputs.nixpkgs.follows = "nixpkgs"; };
fenix = { url = "https://flakehub.com/f/nix-community/fenix/0.1.*"; inputs.nixpkgs.follows = "nixpkgs"; };
flake-checker = { url = "https://flakehub.com/f/DeterminateSystems/flake-checker/*"; inputs.nixpkgs.follows = "nixpkgs"; };
Expand Down Expand Up @@ -71,6 +73,7 @@
rev = inputs.self.rev or inputs.self.dirtyRev or null;
fh = inputs.fh.packages.${system}.default;
flake-checker = inputs.flake-checker.packages.${system}.default;
ghostty = inputs.ghostty.packages.${system}.default;
jelly = inputs.jelly.packages.${system}.default;
rustToolchain = with inputs.fenix.packages.${system};
combine (with stable; [
Expand Down Expand Up @@ -99,6 +102,7 @@
inherit pkgs;
overlays = [
inputs.nuenv.overlays.default
inputs.fenix.overlays.default
inputs.self.overlays.default
];
};
Expand All @@ -109,6 +113,7 @@

home-manager = { pkgs, ... }: import ./home-manager {
inherit pkgs stateVersion username;
ghosttyModule = inputs.ghostty-module.homeModules.default;
};
};

Expand Down
8 changes: 0 additions & 8 deletions home-manager/alacritty.nix

This file was deleted.

2 changes: 2 additions & 0 deletions home-manager/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ pkgs
, stateVersion
, username
, ghosttyModule
}:

{
Expand All @@ -16,6 +17,7 @@
shellAliases = (import ./aliases.nix { inherit pkgs; }).shell;
inherit stateVersion username;
};
imports = [ ghosttyModule ];
programs = import ./programs.nix { inherit pkgs; };
};
};
Expand Down
2 changes: 1 addition & 1 deletion home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let
cargo-edit
cargo-machete
cargo-watch
rust-analyzer
rust-analyzer-nightly
];

scripts = with pkgs; [
Expand Down
11 changes: 8 additions & 3 deletions home-manager/programs.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{ pkgs }:

{
# Alternative terminal
alacritty = import ./alacritty.nix { inherit pkgs; };

# Fancy replacement for cat
bat = {
enable = true;
Expand Down Expand Up @@ -57,6 +54,14 @@
# GitHub CLI
gh = import ./gh.nix { inherit pkgs; };

# Ghostty
ghostty = {
enable = true;
#package = pkgs.ghostty;
shellIntegration.enable = false;
shellIntegration.enableZshIntegration = true;
};

# But of course
git = import ./git.nix { inherit pkgs; };

Expand Down
2 changes: 2 additions & 0 deletions home-manager/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ eval "$(go env)"

# Specific to FlakeHub dev
export ENVRC_USE_FLAKE="1"

export CARGO_NET_GIT_FETCH_WITH_CLI="true"
Loading

0 comments on commit b378e30

Please sign in to comment.