init
This commit is contained in:
2025-08-04 15:37:38 +02:00
parent 3ae535f1b1
commit 703e3f8adf
57 changed files with 674 additions and 3283 deletions

View File

@@ -0,0 +1,23 @@
{
pkgs,
user,
...
}:
{
imports = [
../shared.nix
];
networking.hostName = "chidi";
networking.computerName = "Chidi";
home-manager.users.${user} = {
programs.git.userEmail = "christoph@tuist.dev";
};
environment.systemPackages = with pkgs; [
slack
tuple
];
}

View File

@@ -1,93 +0,0 @@
{
agenix,
config,
pkgs,
...
}:
let
user = "cschmatzler";
in
{
imports = [
../../modules/darwin/secrets.nix
../../modules/darwin/home-manager.nix
../../modules/shared
agenix.darwinModules.default
];
nix = {
package = pkgs.nix;
settings = {
trusted-users = [
"@admin"
"${user}"
];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
};
gc = {
automatic = true;
interval = {
Weekday = 0;
Hour = 2;
Minute = 0;
};
options = "--delete-older-than 30d";
};
extraOptions = ''
experimental-features = nix-command flakes
'';
};
environment.systemPackages =
with pkgs;
[
agenix.packages."${pkgs.system}".default
]
++ (import ../../modules/shared/packages.nix { inherit pkgs; });
system = {
checks.verifyNixPath = false;
primaryUser = user;
stateVersion = 5;
defaults = {
NSGlobalDomain = {
AppleShowAllExtensions = true;
ApplePressAndHoldEnabled = false;
# 120, 90, 60, 30, 12, 6, 2
KeyRepeat = 2;
# 120, 94, 68, 35, 25, 15
InitialKeyRepeat = 15;
"com.apple.mouse.tapBehavior" = 1;
"com.apple.sound.beep.volume" = 0.0;
"com.apple.sound.beep.feedback" = 0;
};
dock = {
autohide = false;
show-recents = false;
launchanim = true;
orientation = "bottom";
tilesize = 48;
};
finder = {
_FXShowPosixPathInTitle = false;
};
trackpad = {
Clicking = true;
TrackpadThreeFingerDrag = true;
};
};
};
}

View File

@@ -0,0 +1,23 @@
{
config,
pkgs,
user,
...
}:
{
imports = [
../shared.nix
];
networking.hostName = "jason";
networking.computerName = "Jason";
home-manager.users.${user} = {
programs.git.userEmail = "christoph@schmatzler.com";
};
environment.systemPackages = with pkgs; [
slack
];
}

14
hosts/darwin/shared.nix Normal file
View File

@@ -0,0 +1,14 @@
{
agenix,
config,
pkgs,
lib,
...
}:
{
imports = [
../../profiles/base
../../profiles/darwin
];
}