Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #20

Merged
merged 5 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ];
}