New beginning

This commit is contained in:
Tobias Ostner 2024-05-09 13:41:34 +02:00
parent 432c85e800
commit 8e64cc68b3
30 changed files with 404 additions and 507 deletions

View file

@ -0,0 +1,91 @@
{ hostname }:
{
nix = {
settings = {
auto-optimise-store = true;
builders-use-substitutes = true;
experimental-features = ["flakes" "nix-command"];
substituters = ["https://nix-community.cachix.org"];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = ["@wheel"];
warn-dirty = false;
};
};
programs.zsh.enable = true;
programs.gnupg.agent.enable = true;
networking.hostName = hostname;
homebrew = {
enable = true;
onActivation.cleanup = "zap";
casks = [
"amethyst"
"anki"
"arc"
"font-iosevka-comfy"
"karabiner-elements"
"logseq"
"nextcloud"
"protonvpn"
"raycast"
];
taps = [
"homebrew/cask-fonts"
];
};
system = {
activationScripts.postUserActivation.text = ''
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
defaults = {
dock= {
autohide = true;
autohide-time-modifier = 0.1;
expose-animation-duration = 0.0;
mru-spaces = false;
orientation = "right";
show-recents = false;
};
finder = {
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
CreateDesktop = false;
FXPreferredViewStyle = "Nlsv";
QuitMenuItem = true;
ShowPathbar = true;
ShowStatusBar = true;
_FXShowPosixPathInTitle = true;
};
trackpad = {
Clicking = true;
TrackpadRightClick = true;
};
menuExtraClock = {
IsAnalog = false;
Show24Hour = true;
ShowDate = 0;
ShowDayOfWeek = false;
};
NSGlobalDomain = {
AppleInterfaceStyle = "Dark";
AppleShowAllExtensions = true;
AppleShowAllFiles = true;
InitialKeyRepeat = 14;
KeyRepeat = 1;
"com.apple.mouse.tapBehavior" = 1;
};
};
};
}

148
nix/module/home-manager.nix Normal file
View file

@ -0,0 +1,148 @@
{pkgs, ...}: {
home.file.".emacs.d/early-init.el".source = ../config/emacs/early-init.el;
home.packages = with pkgs; [
bottom
cmake
curl
gnupg
jq
kubectl
pass
ripgrep
rnix-lsp
tree
wget
];
home.stateVersion = "23.11";
home.sessionVariables = {
PAGER = "less";
CLICOLOR = 1;
EDITOR = "emacs";
LOGSEQ_DIR = "~/Logseq/Me/";
};
programs = {
alacritty = {
enable = true;
settings.font = {
size = 14;
normal.family = "Iosevka Comfy";
normal.style = "Regular";
};
settings.window = {
padding.x = 18;
padding.y = 18;
decorations = "Buttonless";
};
};
emacs = {
enable = true;
extraConfig = builtins.readFile ../config/emacs/init.el +
builtins.readFile ../config/emacs/lisp/utils.el;
extraPackages = epkgs: (with epkgs; [
ace-window
avy
cape
cider
clojure-mode
consult
corfu
diff-hl
dired-preview
dockerfile-mode
ef-themes
exec-path-from-shell
flycheck
flycheck-clj-kondo
flycheck-swiftlint
gptel
git-link
graphql-mode
helpful
js2-mode
json-mode
ligature
minions
multiple-cursors
nerd-icons
nerd-icons-completion
nerd-icons-corfu
nerd-icons-dired
nerd-icons-ibuffer
ob-restclient
ob-swift
olivetti
orderless
org
org-modern
ox-gfm
pulsar
rainbow-delimiters
rainbow-mode
restclient
smartparens
so-long
swift-mode
super-save
terraform-mode
yaml-mode
vterm
fontaine
magit
magit-todos
marginalia
modus-themes
nix-mode
vertico
]);
package = pkgs.emacs29;
};
git = {
enable = true;
userName = "Tobias Ostner";
userEmail = "tobias.ostner@gmail.com";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = true;
};
};
kitty = {
enable = true;
font = {
size = 14;
name = "Iosevka Comfy";
};
extraConfig = builtins.readFile ../config/kitty/kitty.conf;
};
starship = {
enable = true;
enableZshIntegration = true;
settings = {
gcloud.disabled = true;
aws.disabled = true;
hostname.style = "bold green";
};
};
zsh = {
enable = true;
enableCompletion = true;
initExtra = ''
eval "$(/opt/homebrew/bin/brew shellenv)"
'';
syntaxHighlighting.enable = true;
shellAliases = {
ls = "ls --color=auto -F";
};
};
};
xdg.configFile."amethyst/amethyst.yml".text = builtins.readFile ../config/amethyst/amethyst.yml;
}