This commit is contained in:
lsoriano-mcm
2025-06-23 14:32:58 -05:00
commit b631cb20a4
16 changed files with 483 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
pkgs,
general,
builds,
...
}: {
imports = [
# Include the results of the hardware scan.
];
environment.systemPackages = with pkgs; [];
nixpkgs.config.allowUnfree = general.allowUnfree;
nix.settings = {
trusted-users = builds.builder.trustedUsers;
experimental-features = ["nix-command" "flakes"];
};
programs.ssh.extraConfig = general.ssh.extraConfig;
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
# nix.buildMachines = builder.buildMachines;
system.stateVersion = "25.05";
}
+29
View File
@@ -0,0 +1,29 @@
{
pkgs,
general,
builds,
inputs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
environment.systemPackages = with pkgs; [];
nixpkgs.config.allowUnfree = general.allowUnfree;
nix.settings = {
trusted-users = builds.builder.trustedUsers;
experimental-features = ["nix-command" "flakes"];
};
programs.ssh.extraConfig = general.ssh.extraConfig;
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
# nix.buildMachines = builder.buildMachines;
system.stateVersion = "25.05";
}
+39
View File
@@ -0,0 +1,39 @@
{
pkgs,
builds,
general,
...
}: {
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
python313
];
# Auto upgrade nix package and the daemon service.
# services.nix-daemon.enable = true;
# services.karabiner-elements.enable = true;
# nix.package = pkgs.nix;
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
nix.settings.trusted-users = builds.builder.trustedUsers;
# Create /etc/zshrc that loads the nix-darwin environment.
programs.zsh.enable = true; # default shell on catalina
programs.fish.enable = true;
# $ darwin-rebuild changelog
system.stateVersion = 5;
# The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin";
users.users.${general.Username} = {
name = "${general.Username}";
home = "/Users/${general.Username}";
shell = pkgs.${general.terminal.Shell};
};
home-manager.users.${general.Username} = import ../../dotfiles/macos.nix;
}