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
13
flake.nix
13
flake.nix
|
|
@ -49,8 +49,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = inputs @ {
|
||||||
inputs@{
|
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
darwin,
|
darwin,
|
||||||
|
|
@ -61,18 +60,18 @@
|
||||||
homebrew-core,
|
homebrew-core,
|
||||||
homebrew-cask,
|
homebrew-cask,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
username = "poby";
|
username = "poby";
|
||||||
useremail = "smg981024@gmail.com";
|
useremail = "smg981024@gmail.com";
|
||||||
hostname = "fenrir"; # TODO break down to multiple hosts
|
hostname = "fenrir"; # TODO break down to multiple hosts
|
||||||
|
|
||||||
specialArgs = inputs // {
|
specialArgs =
|
||||||
|
inputs
|
||||||
|
// {
|
||||||
inherit username useremail hostname;
|
inherit username useremail hostname;
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
darwinConfigurations."${hostname}" = darwin.lib.darwinSystem {
|
darwinConfigurations."${hostname}" = darwin.lib.darwinSystem {
|
||||||
inherit system specialArgs;
|
inherit system specialArgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
./fd.nix
|
./fd.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
tools = {
|
tools = {
|
||||||
node = "lts";
|
node = "lts";
|
||||||
uv = "latest";
|
uv = "latest";
|
||||||
|
python = "3.13";
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
experimental = true;
|
experimental = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ lib, ... }:
|
{lib, ...}: [
|
||||||
[
|
|
||||||
# autocmds
|
# autocmds
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
options = import ./core/options.nix;
|
options = import ./core/options.nix;
|
||||||
autocmds = import ./core/autocmds.nix {inherit lib;};
|
autocmds = import ./core/autocmds.nix {inherit lib;};
|
||||||
augroups = import ./core/augroups.nix;
|
augroups = import ./core/augroups.nix;
|
||||||
|
|
@ -18,8 +17,7 @@ let
|
||||||
treesitter = import ./lsp/treesitter.nix {inherit pkgs;};
|
treesitter = import ./lsp/treesitter.nix {inherit pkgs;};
|
||||||
autocomplete = import ./lsp/autocomplete.nix;
|
autocomplete = import ./lsp/autocomplete.nix;
|
||||||
languages = import ./lsp/languages;
|
languages = import ./lsp/languages;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
programs.nvf = {
|
programs.nvf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ let
|
||||||
markdown = import ./markdown.nix;
|
markdown = import ./markdown.nix;
|
||||||
html = import ./html.nix;
|
html = import ./html.nix;
|
||||||
yaml = import ./yaml.nix;
|
yaml = import ./yaml.nix;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
inherit
|
inherit
|
||||||
nix
|
nix
|
||||||
python
|
python
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}: {
|
||||||
{
|
|
||||||
# treesitter
|
# treesitter
|
||||||
enable = true;
|
enable = true;
|
||||||
addDefaultGrammars = true;
|
addDefaultGrammars = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
sops = {
|
sops = {
|
||||||
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false;
|
enableDefaultConfig = false;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ lib, ... }:
|
{lib, ...}: {
|
||||||
{
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ config, ... }:
|
{config, ...}: {
|
||||||
{
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -21,7 +20,7 @@
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
poby = "echo my name is poby";
|
poby = "echo my name is poby";
|
||||||
nixconfig = "cd ~/nix-darwin && vim flake.nix";
|
nixconfig = "cd ~/nix-darwin && vim flake.nix";
|
||||||
just-darwin = "cd ~/nix-darwin && just darwin";
|
just-darwin = "cd ~/nix-darwin && just darwin $(hostname)";
|
||||||
};
|
};
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
homebrew-core,
|
homebrew-core,
|
||||||
homebrew-cask,
|
homebrew-cask,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
username,
|
username,
|
||||||
hostname,
|
hostname,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = hostname;
|
hostName = hostname;
|
||||||
computerName = hostname;
|
computerName = hostname;
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
nix = {
|
nix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
username,
|
username,
|
||||||
hostname,
|
hostname,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
time.timeZone = "Asia/Seoul";
|
time.timeZone = "Asia/Seoul";
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
|
|
@ -19,8 +18,7 @@
|
||||||
sudo -u ${username} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
sudo -u ${username} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
|
||||||
'';
|
'';
|
||||||
|
|
||||||
activationScripts.applications.text =
|
activationScripts.applications.text = let
|
||||||
let
|
|
||||||
env = pkgs.buildEnv {
|
env = pkgs.buildEnv {
|
||||||
name = "system-applications";
|
name = "system-applications";
|
||||||
paths = config.environment.systemPackages;
|
paths = config.environment.systemPackages;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue