Skip to content

Commit

Permalink
chore: add all templates to ci (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
squirmy authored Mar 1, 2024
1 parent d33e0c4 commit ab32ab4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- macos-latest
template:
- templates/minimal
# - templates/private-configuration
# - templates/expose-configuration
- templates/private-configuration
- templates/expose-configuration
runs-on: ${{ matrix.os }}
env:
NIX_CONFIG: extra-access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pkgs,
...
}:
lib.mkIf config.squirmy.fortune.enable {
lib.mkIf config.mine.fortune.enable {
home.packages = [
pkgs.fortune
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
config,
...
}:
lib.mkIf config.squirmy.macos.enable {
lib.mkIf config.mine.macos.enable {
security.pam.enableSudoTouchIdAuth = true;
}
2 changes: 1 addition & 1 deletion templates/expose-configuration/configuration/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
macos.enable = lib.options.mkEnableOption "macos";
};
in {
options.squirmy = lib.mkOption {
options.mine = lib.mkOption {
type = lib.types.submodule {options = configurationOptions;};
default = {};
};
Expand Down
6 changes: 6 additions & 0 deletions templates/expose-configuration/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
username = "username";
homeDirectory = "/Users/username";
nixpkgs.hostPlatform = "aarch64-darwin";
shells.zsh.enable = true;
};

mine = {
fortune.enable = true;
macos.enable = true;
};
};

Expand Down
1 change: 1 addition & 0 deletions templates/private-configuration/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
username = "username";
homeDirectory = "/Users/username";
nixpkgs.hostPlatform = "aarch64-darwin";
shells.zsh.enable = true;
};
};
};
Expand Down

0 comments on commit ab32ab4

Please sign in to comment.