feat: airi host

This commit is contained in:
alina 🌸 2024-05-01 06:02:01 +03:00
parent 9fd48b2ca9
commit 6ae50e8cc6
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 143 additions and 0 deletions

View file

@ -87,6 +87,16 @@
];
inherit specialArgs;
};
airi = nix-darwin.lib.darwinSystem {
modules = [
agenix.darwinModules.default
home-manager.darwinModules.home-manager
{ home-manager.extraSpecialArgs = specialArgs; }
./hosts/airi/configuration.nix
];
inherit specialArgs;
};
};
};
}

View file

@ -0,0 +1,133 @@
{ pkgs
, lib
, abs
, inputs
, ...
}:
{
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings.trusted-users = [ "@admin" ];
useDaemon = true;
registry = {
nixpkgs.to = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
rev = inputs.nixpkgs.rev;
};
};
settings.nix-path = [ "nixpkgs=flake:nixpkgs" ];
};
# nixpkgs.flake.source = lib.mkForce null;
nixpkgs.hostPlatform = "aarch64-darwin";
services.nix-daemon.enable = true;
age.identityPaths = [
"/Users/teidesu/.ssh/agenix-key"
];
security.pam.enableSudoTouchIdAuth = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
programs.zsh.enable = true;
imports = [
(import (abs "users/teidesu/darwin.nix") {
home = let
apps = pkgs.callPackage (abs "lib/darwin/apps") {};
in with apps; provisionApps [
# alacritty
# raycast
# karabiner
];
})
];
system.defaults.LaunchServices.LSQuarantine = false;
system.defaults.NSGlobalDomain = {
AppleEnableMouseSwipeNavigateWithScrolls = false;
AppleEnableSwipeNavigateWithScrolls = false;
ApplePressAndHoldEnabled = false;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
AppleShowScrollBars = "WhenScrolling";
NSAutomaticCapitalizationEnabled = false;
NSAutomaticDashSubstitutionEnabled = false;
NSAutomaticPeriodSubstitutionEnabled = false;
NSAutomaticQuoteSubstitutionEnabled = false;
NSAutomaticSpellingCorrectionEnabled = false;
NSWindowShouldDragOnGesture = true;
NSDocumentSaveNewDocumentsToCloud = false;
NSNavPanelExpandedStateForSaveMode = true;
NSNavPanelExpandedStateForSaveMode2 = true;
InitialKeyRepeat = 10;
KeyRepeat = 1;
AppleKeyboardUIMode = 3;
NSWindowResizeTime = 0.1;
"com.apple.keyboard.fnState" = true;
};
system.defaults.alf.allowdownloadsignedenabled = 1;
system.defaults.dock = {
mru-spaces = false;
orientation = "left";
show-recents = false;
tilesize = 36;
wvous-bl-corner = 1;
wvous-br-corner = 1;
wvous-tl-corner = 1;
wvous-tr-corner = 1;
};
system.defaults.finder = {
FXDefaultSearchScope = "SCcf";
FXEnableExtensionChangeWarning = false;
FXPreferredViewStyle = "Nlsv";
ShowPathbar = true;
ShowStatusBar = true;
};
system.defaults.CustomUserPreferences = {
NSGlobalDomain = {
TSMLanguageIndicatorEnabled = 0;
QLPanelAnimationDuration = 0;
NSAutomaticWindowAnimationsEnabled = 0;
};
"com.apple.screencapture".location = "~/Pictures";
"com.apple.finder" = {
_FXSortFoldersFirst = true;
CreateDesktop = false;
ShowHardDrivesOnDesktop = false;
ShowExternalHardDrivesOnDesktop = false;
ShowRemovableMediaOnDesktop = false;
ShowMountedServersOnDesktop = false;
};
"com.apple.BluetoothAudioAgent" = {
# from https://github.com/joeyhoer/starter/blob/master/system/bluetooth.sh
"Apple Bitpool Max (editable)" = 80;
"Apple Bitpool Min (editable)" = 48;
"Apple Initial Bitpool (editable)" = 40;
"Negotiated Bitpool" = 48;
"Negotiated Bitpool Max" = 53;
"Negotiated Bitpool Min" = 48;
"Stream - Flush Ring on Packet Drop (editable)" = 30;
"Stream - Max Outstanding Packets (editable)" = 15;
"Stream Resume Delay" = "0.75";
};
"com.apple.dock".size-immutable = true;
"com.apple.frameworks.diskimages".skip-verify = true;
"com.apple.CrashReporter".UseUNC = 1;
com.apple.helpviewer.DevMode = true;
};
system.stateVersion = 4;
}