Skip to content

Commit

Permalink
Merge pull request #9 from fjij/work-laptop
Browse files Browse the repository at this point in the history
Add work laptop
  • Loading branch information
fjij authored Jan 20, 2025
2 parents 62beea6 + a88a291 commit 851e499
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [ ./home-manager-configs/work.nix ];
};

"work-laptop" = home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
modules = [ ./home-manager-configs/work-laptop.nix ];
};
};

devShells = eachSystem (pkgs: {
Expand Down
12 changes: 12 additions & 0 deletions home-manager-configs/work-laptop.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
imports = [ ../home-manager-modules ];
home = {
username = "wharris";
homeDirectory = "/Users/wharris";
};
nixpkgs.config.allowUnfree = true;
fjij.mac-gui.enable = true;
fjij.tools.enable = true;
fjij.base.enable = true;
fjij.nixvim.enable = true;
}
3 changes: 3 additions & 0 deletions home-manager-modules/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ in
};

home.activation.patchAlacrittyMacosApp = lib.mkIf cfg.macApp (
# Troubleshooting: If Alacritty immediately closes, it might because SHELL
# is not set to the correct shell. This might take a `chsh` and a reboot
# to properly work.
let
appDir = "${config.home.homeDirectory}/Applications";
localApp = "${appDir}/Alacritty.app";
Expand Down
4 changes: 2 additions & 2 deletions scripts/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
name = "homeManagerUseFish";
text = ''
# Add fish to list of allowed shells
echo $(which fish) | sudo tee -a /etc/shells
which fish | sudo tee -a /etc/shells
# Change shell to fish for current user
sudo chsh -s $(which fish) $(whoami)
sudo chsh -s "$(which fish)" "$(whoami)"
'';
};
}

0 comments on commit 851e499

Please sign in to comment.