mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: add python 3.13 as mise global
format with alejandra
This commit is contained in:
parent
4cf65ab631
commit
fed3a5226a
27 changed files with 101 additions and 116 deletions
|
|
@ -5,8 +5,7 @@
|
|||
homebrew-core,
|
||||
homebrew-cask,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
username,
|
||||
hostname,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
networking = {
|
||||
hostName = hostname;
|
||||
computerName = hostname;
|
||||
|
|
@ -15,5 +14,5 @@
|
|||
description = username;
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ username ];
|
||||
nix.settings.trusted-users = [username];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
nix = {
|
||||
enable = true;
|
||||
package = pkgs.nix;
|
||||
|
|
@ -13,7 +12,7 @@
|
|||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
substituters = [ "https://nix-community.cachix.org" ];
|
||||
substituters = ["https://nix-community.cachix.org"];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@
|
|||
username,
|
||||
hostname,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
time.timeZone = "Asia/Seoul";
|
||||
|
||||
system = {
|
||||
|
|
@ -19,14 +18,13 @@
|
|||
sudo -u ${username} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||
'';
|
||||
|
||||
activationScripts.applications.text =
|
||||
let
|
||||
env = pkgs.buildEnv {
|
||||
name = "system-applications";
|
||||
paths = config.environment.systemPackages;
|
||||
pathsToLink = [ "/Applications" ];
|
||||
};
|
||||
in
|
||||
activationScripts.applications.text = let
|
||||
env = pkgs.buildEnv {
|
||||
name = "system-applications";
|
||||
paths = config.environment.systemPackages;
|
||||
pathsToLink = ["/Applications"];
|
||||
};
|
||||
in
|
||||
pkgs.lib.mkForce ''
|
||||
# Set up applications.
|
||||
echo "setting up /Applications..." >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue