Compare commits
No commits in common. "565797625dcd6a8c957986cab574a0f738b62cbe" and "b635a8c5b2ace7e3a18308015b5bda293efec9b2" have entirely different histories.
565797625d
...
b635a8c5b2
4 changed files with 84 additions and 10 deletions
23
flake.nix
23
flake.nix
|
@ -13,6 +13,29 @@
|
||||||
|
|
||||||
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, nixvim }:
|
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager, nixvim }:
|
||||||
{
|
{
|
||||||
|
darwinConfigurations."tid27880sperrau" = nix-darwin.lib.darwinSystem {
|
||||||
|
modules = [
|
||||||
|
{
|
||||||
|
system.configurationRevision = self.rev or self.dirtyRev or null;
|
||||||
|
}
|
||||||
|
./nix-darwin
|
||||||
|
./nix-darwin/hosts/tid27880sperrau
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
|
{
|
||||||
|
users.users.sperrault.home = "/Users/sperrault";
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
backupFileExtension = "before-home-manager";
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit nixvim;
|
||||||
|
};
|
||||||
|
users.sperrault = import ./home-manager/users/sperrault.nix;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
darwinConfigurations."Sloanes-MacBook-Air" = nix-darwin.lib.darwinSystem {
|
darwinConfigurations."Sloanes-MacBook-Air" = nix-darwin.lib.darwinSystem {
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,6 +35,17 @@
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "transient.fish";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "zzhaolei";
|
||||||
|
repo = "transient.fish";
|
||||||
|
rev = "7091a1ef574e4c2d16779e59d37ceb567128c787";
|
||||||
|
hash = "sha256-rZqMQiVGEEYus5MxkpFhaXnjVStmsjWkGly4B6bjcks=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
fish_vi_key_bindings
|
fish_vi_key_bindings
|
||||||
|
|
||||||
|
@ -204,7 +215,6 @@
|
||||||
revsets.log = "trunk() | ancestors(reachable(@ | mine(), mutable()), 2) | @";
|
revsets.log = "trunk() | ancestors(reachable(@ | mine(), mutable()), 2) | @";
|
||||||
git = {
|
git = {
|
||||||
push-bookmark-prefix = "sloane/push-";
|
push-bookmark-prefix = "sloane/push-";
|
||||||
push-new-bookmarks = true;
|
|
||||||
private-commits = "wip | nocommit | dev-only";
|
private-commits = "wip | nocommit | dev-only";
|
||||||
};
|
};
|
||||||
revset-aliases = {
|
revset-aliases = {
|
||||||
|
@ -212,15 +222,6 @@
|
||||||
nocommit = ''description(regex:"^\\[(nocommit|NOCOMMIT)\\]|(nocommit|NOCOMMIT):?")'';
|
nocommit = ''description(regex:"^\\[(nocommit|NOCOMMIT)\\]|(nocommit|NOCOMMIT):?")'';
|
||||||
dev-only = ''description(regex:"^\\[(dev-only|DEV-ONLY)\\]|(dev-only|DEV-ONLY):?")'';
|
dev-only = ''description(regex:"^\\[(dev-only|DEV-ONLY)\\]|(dev-only|DEV-ONLY):?")'';
|
||||||
current = ''(bookmarks() | wip | dev-only) & mine()'';
|
current = ''(bookmarks() | wip | dev-only) & mine()'';
|
||||||
"closest_bookmark(to)" = "heads(::to & bookmarks())";
|
|
||||||
};
|
|
||||||
aliases = {
|
|
||||||
r = ["rebase"];
|
|
||||||
s = ["squash"];
|
|
||||||
n = ["new"];
|
|
||||||
e = ["edit"];
|
|
||||||
tug = ["bookmark" "move" "--from" "closest_bookmark(@-)" "--to" "@-"];
|
|
||||||
catchup = ["rebase" "-b" "all(current() ~immutable())" "-d" "trunk()" "--skip-emptied"];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
12
home-manager/users/sperrault.nix
Normal file
12
home-manager/users/sperrault.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [ ../default.nix ];
|
||||||
|
home = {
|
||||||
|
username = "sperrault";
|
||||||
|
homeDirectory = "/Users/sperrault";
|
||||||
|
|
||||||
|
sessionPath = [
|
||||||
|
"/Applications/Postgres.app/Contents/Versions/15/bin"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
38
nix-darwin/hosts/tid27880sperrau/default.nix
Normal file
38
nix-darwin/hosts/tid27880sperrau/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ ... }: {
|
||||||
|
system.defaults = {
|
||||||
|
dock.persistent-apps = [
|
||||||
|
"/Applications/Firefox.app"
|
||||||
|
"/Applications/Things3.app"
|
||||||
|
"/System/Applications/Mail.app"
|
||||||
|
"/Applications/Fantastical.app"
|
||||||
|
"/Applications/Microsoft Outlook.app"
|
||||||
|
"/Applications/Microsoft Teams.app"
|
||||||
|
"/Applications/Slack.app"
|
||||||
|
"/Applications/Obsidian.app"
|
||||||
|
"/Applications/Ghostty.app"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
homebrew = {
|
||||||
|
brews = [
|
||||||
|
"make"
|
||||||
|
"wget"
|
||||||
|
"zlib"
|
||||||
|
"sqlite3"
|
||||||
|
"spatialindex"
|
||||||
|
"pcre"
|
||||||
|
"gdal"
|
||||||
|
"xz"
|
||||||
|
];
|
||||||
|
casks = [
|
||||||
|
"chromedriver"
|
||||||
|
"discord"
|
||||||
|
"keycastr"
|
||||||
|
"mouseless@preview"
|
||||||
|
"netnewswire"
|
||||||
|
"postgres-unofficial"
|
||||||
|
"postico"
|
||||||
|
"slack"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue