refactor: statix, deadnix, alejandra

This commit is contained in:
Kat Inskip 2023-01-17 14:26:07 -05:00
parent 961ec369ba
commit 53eed4454d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
57 changed files with 1296 additions and 963 deletions

8
darwin/base/docs.nix Normal file
View file

@ -0,0 +1,8 @@
_: {
documentation = {
enable = false;
man.enable = false;
info.enable = false;
doc.enable = false;
};
}

5
darwin/base/fonts.nix Normal file
View file

@ -0,0 +1,5 @@
_: {
fonts = {
fontDir.enable = true;
};
}

6
darwin/base/gpg.nix Normal file
View file

@ -0,0 +1,6 @@
_: {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}

12
darwin/base/homebrew.nix Normal file
View file

@ -0,0 +1,12 @@
_: {
homebrew = {
enable = true;
onActivation = {
upgrade = true;
cleanup = "zap";
};
brews = [
"mas"
];
};
}

8
darwin/base/nix.nix Normal file
View file

@ -0,0 +1,8 @@
_: {
services.nix-daemon.enable = true;
nix = {
extraOptions = ''
extra-platforms = x86_64-darwin aarch64-darwin
'';
};
}

5
darwin/base/shell.nix Normal file
View file

@ -0,0 +1,5 @@
_: {
programs.zsh = {
enable = true;
};
}

42
darwin/base/system.nix Normal file
View file

@ -0,0 +1,42 @@
_: {
services.activate-system.enable = true;
system = {
defaults = {
SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;
NSGlobalDomain = {
AppleInterfaceStyleSwitchesAutomatically = true;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
};
dock = {
autohide = true;
orientation = "left";
tilesize = 32;
wvous-tl-corner = 1;
wvous-tr-corner = 10;
wvous-bl-corner = 4;
wvous-br-corner = 14;
};
finder = {
CreateDesktop = false;
ShowPathbar = true;
ShowStatusBar = true;
AppleShowAllFiles = true;
AppleShowAllExtensions = true;
};
loginwindow = {
GuestEnabled = false;
};
};
keyboard = {
enableKeyMapping = true;
remapCapsLockToControl = true;
userKeyMapping = [
{
HIDKeyboardModifierMappingSrc = 30064771129;
HIDKeyboardModifierMappingDst = 30064771299;
}
];
};
};
}

7
darwin/home.nix Normal file
View file

@ -0,0 +1,7 @@
{config, ...}: {
services.gpg-agent.pinentryFlavor = null;
home.file."${config.programs.gpg.homedir}/gpg-agent.conf".text = ''
pinentry-program /opt/homebrew/bin/pinentry-mac
'';
}

14
darwin/kat.nix Normal file
View file

@ -0,0 +1,14 @@
{pkgs, ...}: {
users.users.kat = {
name = "kat";
home = "/Users/kat";
shell = pkgs.zsh;
uid = 501;
};
users.knownUsers = [
"kat"
];
home-manager.users.kat.programs.zsh.initExtraFirst = ''
source /etc/static/zshrc
'';
}