Skip to content
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
35 changes: 34 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate NixOS Configurations
name: Validate Nix Configurations

on:
push:
Expand All @@ -24,6 +24,9 @@ jobs:
extra_nix_config: |
experimental-features = nix-command flakes

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Run flake check
working-directory: nixos
run: nix flake check
Expand Down Expand Up @@ -51,3 +54,33 @@ jobs:
run: |
echo "Building home-lab..."
nix build .#nixosConfigurations.home-lab.config.system.build.toplevel --dry-run

validate-darwin:
name: Validate Darwin configurations
if: github.event_name == 'pull_request'
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Nix
uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
experimental-features = nix-command flakes

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@v8

- name: Validate dungeon
working-directory: nixos
run: |
echo "Building dungeon..."
nix build .#darwinConfigurations.dungeon.config.system.build.toplevel --dry-run

- name: Validate moria
working-directory: nixos
run: |
echo "Building moria..."
nix build .#darwinConfigurations.moria.config.system.build.toplevel --dry-run
5 changes: 5 additions & 0 deletions nixos/modules/darwin/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
echo "NOTE: There are manual steps that may need to be applied for an initial setup."
echo " See nixos/modules/darwin/README.md"
echo ""

# Reduce spacing between menu bar icons to fit more items
# https://news.ycombinator.com/item?id=47618946
defaults -currentHost write -globalDomain NSStatusItemSpacing -int 2
defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 2
'';

# nix-darwin state version
Expand Down
Loading