Skip to content

Commit

Permalink
Change flake.nix to avoid rebuilding packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Dec 13, 2023
1 parent 6c5563d commit 27791e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
14 changes: 6 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
mkHomeManagerConfig = { system, modules }:
home-manager.lib.homeManagerConfiguration {
inherit modules;
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
devenv = devenv.packages.${system}.default;
})
vim-plugins.overlays.default
];
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {
devenv-overlay = (final: prev: {
devenv = devenv.packages.${system}.default;
});
vim-plugins-overlay = vim-plugins.overlays.default;
};
};
in
Expand Down
8 changes: 7 additions & 1 deletion home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, devenv-overlay, vim-plugins-overlay, ... }:

{
# This value determines the Home Manager release that your configuration is
Expand Down Expand Up @@ -29,6 +29,7 @@
pkgs.devenv
pkgs.jq
pkgs.nix-prefetch
pkgs.nixpkgs-fmt
pkgs.noti
pkgs.pstree
pkgs.tmate
Expand Down Expand Up @@ -71,4 +72,9 @@
programs.starship.enable = true;

programs.home-manager.enable = true;

nixpkgs.overlays = [
devenv-overlay
vim-plugins-overlay
];
}

0 comments on commit 27791e4

Please sign in to comment.