Skip to content

Commit

Permalink
Add home configuration for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Oct 21, 2023
1 parent f6a212f commit 93e2db7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 14 deletions.
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 @@ -79,4 +74,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 93e2db7

Please sign in to comment.