mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
refactor: statix, deadnix, alejandra
This commit is contained in:
parent
961ec369ba
commit
53eed4454d
57 changed files with 1296 additions and 963 deletions
8
darwin/base/docs.nix
Normal file
8
darwin/base/docs.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
_: {
|
||||
documentation = {
|
||||
enable = false;
|
||||
man.enable = false;
|
||||
info.enable = false;
|
||||
doc.enable = false;
|
||||
};
|
||||
}
|
||||
5
darwin/base/fonts.nix
Normal file
5
darwin/base/fonts.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
};
|
||||
}
|
||||
6
darwin/base/gpg.nix
Normal file
6
darwin/base/gpg.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
||||
12
darwin/base/homebrew.nix
Normal file
12
darwin/base/homebrew.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_: {
|
||||
homebrew = {
|
||||
enable = true;
|
||||
onActivation = {
|
||||
upgrade = true;
|
||||
cleanup = "zap";
|
||||
};
|
||||
brews = [
|
||||
"mas"
|
||||
];
|
||||
};
|
||||
}
|
||||
8
darwin/base/nix.nix
Normal file
8
darwin/base/nix.nix
Normal 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
5
darwin/base/shell.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
42
darwin/base/system.nix
Normal file
42
darwin/base/system.nix
Normal 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
7
darwin/home.nix
Normal 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
14
darwin/kat.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue