-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephen Hoekstra <[email protected]>
- Loading branch information
Showing
7 changed files
with
129 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ pkgs, ... }: | ||
|
||
let | ||
imports = [ | ||
./homebrew.nix | ||
]; | ||
|
||
in { | ||
|
||
inherit imports; | ||
|
||
# Make sure the nix daemon always runs | ||
services.nix-daemon.enable = true; | ||
|
||
# Fonts | ||
fonts.fontDir.enable = true; | ||
fonts.fonts = with pkgs; [ | ||
recursive | ||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) | ||
]; | ||
|
||
# If you use zsh you'll need to enable this so nix-darwin creates a zshrc sourcing needed environment changes | ||
programs.zsh.enable = true; | ||
|
||
home-manager.useGlobalPkgs = true; | ||
home-manager.useUserPackages = true; | ||
home-manager.users."shoekstra" = import ../../users/shoekstra/home.nix; | ||
|
||
# This needs to be to set for things to work (see https://github.com/LnL7/nix-darwin/issues/423) | ||
users.users."shoekstra" = { | ||
home = "/Users/shoekstra"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
homebrew.enable = true; | ||
|
||
homebrew.casks = [ | ||
"iterm2" | ||
"spotify" | ||
"telegram" | ||
"whatsapp" | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,44 @@ in { | |
|
||
# Let Home Manager install and manage itself. | ||
programs.home-manager.enable = true; | ||
|
||
# Packages with modules to configure them. | ||
programs = { | ||
bat = { | ||
enable = true; | ||
|
||
config.theme = "OneHalfDark"; | ||
}; | ||
|
||
git = { | ||
enable = true; | ||
|
||
userName = "Stephen Hoekstra"; | ||
userEmail = "[email protected]"; | ||
|
||
aliases = { | ||
personal = "config user.email [email protected]"; | ||
unstage = "reset HEAD --"; | ||
}; | ||
|
||
extraConfig = { | ||
core.whitespace = "trailing-space,space-before-tab"; | ||
credential.helper = "osxkeychain"; | ||
}; | ||
|
||
signing.key = "DBB82B1442BFA582"; | ||
}; | ||
}; | ||
|
||
programs.gh-dash.enable = true; | ||
programs.gh.enable = true; | ||
programs.gpg.enable = true; | ||
programs.htop.enable = true; | ||
programs.k9s.enable = true; | ||
|
||
# Packages without modules to configure them. | ||
home.packages = with pkgs; [ | ||
mc | ||
tree | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,40 @@ | ||
{ config, pkgs, ... }: | ||
{ pkgs, ... }: | ||
|
||
let | ||
|
||
lib = import ../../lib; | ||
|
||
in { | ||
{ | ||
home.packages = with pkgs; [ | ||
reattach-to-user-namespace | ||
tmux | ||
]; | ||
|
||
home.file = { | ||
".tmux.conf".source = pkgs.fetchFromGitHub { | ||
owner = "gpakosz"; | ||
repo = ".tmux"; | ||
rev = "7706ab724f3811479a358c6f9ea6aeb6decece5f"; | ||
sha256 = "sha256-o126SathIT49Mj9EZDhlYF5i3EgRe2HFZkoGXTVQBbw="; | ||
} + "/.tmux.conf"; | ||
programs.tmux = { | ||
enable = true; | ||
baseIndex = 1; | ||
historyLimit = 50000; | ||
keyMode = "vi"; | ||
mouse = true; | ||
prefix = "C-a"; | ||
sensibleOnTop = false; | ||
terminal = "xterm-256color"; | ||
|
||
extraConfig = '' | ||
# Switch to last window, screen style | ||
bind-key a send-prefix | ||
bind-key C-a last-window | ||
# Apply true color | ||
set-option -ga terminal-overrides ",xterm-256color:Tc" | ||
''; | ||
|
||
".tmux.conf.local".source = lib.dotFilePath "tmux/tmux.conf.local"; | ||
plugins = with pkgs; [ | ||
# Waiting for https://github.com/NixOS/nixpkgs/pull/191517 to be merged | ||
(tmuxPlugins.sensible.overrideAttrs ( _: { | ||
version = "unstable-2022-08-14"; | ||
src = fetchFromGitHub { | ||
owner = "tmux-plugins"; | ||
repo = "tmux-sensible"; | ||
rev = "25cb91f42d020f675bb0a2ce3fbd3a5d96119efa"; | ||
sha256 = "sha256-sw9g1Yzmv2fdZFLJSGhx1tatQ+TtjDYNZI5uny0+5Hg="; | ||
}; | ||
})) | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters