Skip to content

Commit

Permalink
refactor: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Jan 30, 2024
1 parent cf5188c commit c4f5a91
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions hosts/asahi/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
inputs,
nixpkgs,
helix-flake,
home-manager,
...
}: let
user = "matt";
userName = "matt";

# Setup Asahi Architecture
system = "aarch64-linux";

pkgs = import nixpkgs {
# Setup Asahi Architecture
system = "aarch64-linux";
inherit system;

# Allow packages like Nvidia Drivers
config.allowUnfree = true;
Expand All @@ -20,6 +23,7 @@
];
};

# Wrap yazi so images work
yazi = pkgs.symlinkJoin {
name = "yazi-wrapped";
paths = [pkgs.yazi];
Expand All @@ -33,7 +37,7 @@ in {
asahi = home-manager.lib.homeManagerConfiguration {
# This is duplicated here for home manager
pkgs = import nixpkgs {
system = "aarch64-linux";
inherit system;
config.allowUnfree = true;
overlays = [
(import ../../overlay/overlay.nix)
Expand All @@ -44,7 +48,8 @@ in {
modules = [
../../modules/common.nix
{
programs.helix.package = inputs.helix-flake.packages."${pkgs.system}".default;
# override home manager helix with my fork
programs.helix.package = helix-flake.packages."${pkgs.system}".default;
programs.helix.enable = true;
}

Expand Down

0 comments on commit c4f5a91

Please sign in to comment.