-
-
Save LnL7/0896a9a4fd7bc4d6bba3cb915e877ce5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
darwin-rebuild switch --arg configuration "$(hostname -s).nix" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
host = config.networking.hostName; | |
in | |
{ | |
environment.systemPackages = mkIf (host == "foo") [ | |
curl | |
]; | |
nix.nixPath = [ "darwin-config=${./. + host}.nix" ]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
imports = [ ./configuration.nix ]; | |
networking.hostName = "foo"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment