Skip to content

Commit

Permalink
Fix CI (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella authored Oct 21, 2023
1 parent 1c7d214 commit 71f2d34
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@v5
- uses: DeterminateSystems/nix-installer-action@v6
- run: nix run home-manager/master -- init --switch
- run: nix run home-manager/master -- init --switch $GITHUB_WORKSPACE
26 changes: 17 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,29 @@
};
};

outputs = { nixpkgs, home-manager, ... }:
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
in
{
homeConfigurations."sestrella" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
outputs = { nixpkgs, home-manager, ... }: {
homeConfigurations = {
runner = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;

# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./home.nix ];
modules = [ ./runner.nix ];

# Optionally use extraSpecialArgs
# to pass through arguments to home.nix

};
sestrella = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;

# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./sestrella.nix ];

# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
};
}
6 changes: 1 addition & 5 deletions home.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{ config, pkgs, ... }:

{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "sestrella";
home.homeDirectory = "/Users/sestrella";

# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
Expand Down Expand Up @@ -78,4 +73,5 @@
# nixpkgs.overlays = [
# vim-plugins-overlays.default
# ];
programs.home-manager.enable = true;
}
10 changes: 10 additions & 0 deletions runner.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ config, pkgs, ... }:

{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "runner";
home.homeDirectory = "/home/runner";

imports = [ ./home.nix ];
}
10 changes: 10 additions & 0 deletions sestrella.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ config, pkgs, ... }:

{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "sestrella";
home.homeDirectory = "/Users/sestrella";

imports = [ ./home.nix ];
}

0 comments on commit 71f2d34

Please sign in to comment.