mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-15 04:37:21 +00:00
home reorg
This commit is contained in:
parent
c496b8f223
commit
63567f0d06
7 changed files with 240 additions and 233 deletions
|
@ -16,8 +16,9 @@ let
|
||||||
web = "Safari";
|
web = "Safari";
|
||||||
zotero = "Zotero";
|
zotero = "Zotero";
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
imports = [ ./launchd.nix ];
|
{
|
||||||
|
imports = [ ./launchd.nix ./iterm2.nix ./finder.nix ];
|
||||||
|
|
||||||
home.file.".gnupg/gpg-agent.conf".text = mkIf stdenv.isDarwin ''
|
home.file.".gnupg/gpg-agent.conf".text = mkIf stdenv.isDarwin ''
|
||||||
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"
|
pinentry-program "${pkgs.pinentry-touchid}/bin/pinentry-touchid"
|
||||||
|
@ -35,7 +36,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.shellAliases = mkIf stdenv.isDarwin ({
|
programs.zsh.shellAliases = mkIf stdenv.isDarwin ({
|
||||||
am = lib.mkIf pkgs.stdenv.isDarwin "zsh ~/.config/zsh/am.sh";
|
|
||||||
o = "open";
|
o = "open";
|
||||||
oa = "open -a";
|
oa = "open -a";
|
||||||
pinentry = "pinentry-mac";
|
pinentry = "pinentry-mac";
|
||||||
|
@ -46,8 +46,6 @@ in {
|
||||||
|
|
||||||
targets.darwin = {
|
targets.darwin = {
|
||||||
defaults = {
|
defaults = {
|
||||||
"com.googlecode.iterm2" = import ./iterm2.nix;
|
|
||||||
"com.apple.finder" = import ./finder.nix;
|
|
||||||
NSGlobalDomain = {
|
NSGlobalDomain = {
|
||||||
AppleLanguages = [ "en-CA" ];
|
AppleLanguages = [ "en-CA" ];
|
||||||
AppleLocale = "en_CA";
|
AppleLocale = "en_CA";
|
|
@ -1,164 +0,0 @@
|
||||||
let
|
|
||||||
columnSettings = {
|
|
||||||
name = {
|
|
||||||
visible = true;
|
|
||||||
width = 300;
|
|
||||||
index = 1;
|
|
||||||
};
|
|
||||||
dateModified = {
|
|
||||||
visible = true;
|
|
||||||
width = 150;
|
|
||||||
index = 2;
|
|
||||||
};
|
|
||||||
dateCreated = {
|
|
||||||
visible = true;
|
|
||||||
width = 150;
|
|
||||||
index = 3;
|
|
||||||
};
|
|
||||||
size = {
|
|
||||||
visible = true;
|
|
||||||
index = 4;
|
|
||||||
width = 100;
|
|
||||||
};
|
|
||||||
dateLastOpened = {
|
|
||||||
visible = true;
|
|
||||||
width = 150;
|
|
||||||
index = 5;
|
|
||||||
};
|
|
||||||
kind = {
|
|
||||||
visible = true;
|
|
||||||
width = 100;
|
|
||||||
index = 6;
|
|
||||||
};
|
|
||||||
comments = {
|
|
||||||
visible = false;
|
|
||||||
width = 200;
|
|
||||||
index = 7;
|
|
||||||
};
|
|
||||||
label = {
|
|
||||||
visible = false;
|
|
||||||
width = 50;
|
|
||||||
index = 8;
|
|
||||||
};
|
|
||||||
version = {
|
|
||||||
visible = false;
|
|
||||||
width = 50;
|
|
||||||
index = 9;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
listviewsettings = {
|
|
||||||
calculateAllSizes = true;
|
|
||||||
showIconPreview = true;
|
|
||||||
iconSize = 16;
|
|
||||||
textSize = 13;
|
|
||||||
sortColumn = "name";
|
|
||||||
useRelativeDates = true;
|
|
||||||
viewOptionsVersion = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
default-view-settings = {
|
|
||||||
ExtendedListViewSettingsV2 = {
|
|
||||||
columns = builtins.sort (a: b: a.index < b.index) (map (name:
|
|
||||||
(name: value: {
|
|
||||||
identifier = "${name}";
|
|
||||||
visible = value.visible;
|
|
||||||
width = value.width;
|
|
||||||
index = value.index;
|
|
||||||
}) name columnSettings.${name}) (builtins.attrNames columnSettings));
|
|
||||||
} // listviewsettings;
|
|
||||||
ListViewSettings = { columns = columnSettings; } // listviewsettings;
|
|
||||||
};
|
|
||||||
|
|
||||||
dvs-with-ws = {
|
|
||||||
WindowState = {
|
|
||||||
ContainerShowSidebar = true;
|
|
||||||
ShowStatusBar = true;
|
|
||||||
ShowSidebar = true;
|
|
||||||
ShowToolbar = true;
|
|
||||||
ShowTabView = true;
|
|
||||||
};
|
|
||||||
} // default-view-settings;
|
|
||||||
in {
|
|
||||||
AppleShowAllExtensions = true;
|
|
||||||
|
|
||||||
ComputerViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
CreateDesktop = false;
|
|
||||||
|
|
||||||
DesktopViewSettings = { GroupBy = "Kind"; };
|
|
||||||
|
|
||||||
FinderSpawnTab = false;
|
|
||||||
|
|
||||||
FK_DefaultListViewSettingsV2 =
|
|
||||||
default-view-settings.ExtendedListViewSettingsV2;
|
|
||||||
|
|
||||||
FK_StandardViewSettings = {
|
|
||||||
SettingsType = "FK_StandardViewSettings";
|
|
||||||
} // default-view-settings;
|
|
||||||
|
|
||||||
FK_iCloudListViewSettingsV2 =
|
|
||||||
default-view-settings.ExtendedListViewSettingsV2;
|
|
||||||
|
|
||||||
FXArrangeGroupViewBy = "Name";
|
|
||||||
|
|
||||||
FXDefaultSearchScope = "SCsp";
|
|
||||||
|
|
||||||
FXEnableExtensionChangeWarning = false;
|
|
||||||
|
|
||||||
FXEnableRemoveFromICloudDriveWarning = false;
|
|
||||||
|
|
||||||
FXICloudDriveDocuments = true;
|
|
||||||
|
|
||||||
FXICloudDriveEnabled = true;
|
|
||||||
|
|
||||||
FXPreferredGroupBy = "Kind";
|
|
||||||
|
|
||||||
FXPreferredViewStyle = "Nlsv";
|
|
||||||
|
|
||||||
GoToField = "~/Library/";
|
|
||||||
|
|
||||||
ICloudViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
NetworkViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
NSDocumentSaveNewDocumentsToCloud = false;
|
|
||||||
|
|
||||||
NSTableViewDefaultSizeMode = 1;
|
|
||||||
|
|
||||||
PackageViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
RecentsArrangeGroupViewBy = "Date Last Opened";
|
|
||||||
|
|
||||||
SearchViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
ShowExternalHardDrivesOnDesktop = false;
|
|
||||||
|
|
||||||
ShowHardDrivesOnDesktop = false;
|
|
||||||
|
|
||||||
ShowPathbar = true;
|
|
||||||
|
|
||||||
ShowRemovableMediaOnDesktop = false;
|
|
||||||
|
|
||||||
ShowSidebar = true;
|
|
||||||
|
|
||||||
showWindowTitlebarIcons = false;
|
|
||||||
|
|
||||||
SidebarWidth = 135;
|
|
||||||
|
|
||||||
SidebarZoneOrder1 = [ "icloud_drive" "favorites" "devices" "tags" ];
|
|
||||||
|
|
||||||
StandardViewSettings = {
|
|
||||||
SettingsType = "StandardViewSettings";
|
|
||||||
} // default-view-settings;
|
|
||||||
|
|
||||||
TrashViewSettings = dvs-with-ws;
|
|
||||||
|
|
||||||
WarnOnEmptyTrash = false;
|
|
||||||
|
|
||||||
_FXShowPosixPathInTitle = true;
|
|
||||||
|
|
||||||
_FXSortFoldersFirst = true;
|
|
||||||
|
|
||||||
_FXSortFoldersFirstOnDesktop = true;
|
|
||||||
}
|
|
|
@ -43,5 +43,5 @@ rec {
|
||||||
username = "willem";
|
username = "willem";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ ./emacs.nix ./packages.nix ./programs.nix ./darwin ];
|
imports = [ ./emacs.nix ./packages.nix ./programs.nix ./darwin.nix ];
|
||||||
}
|
}
|
||||||
|
|
170
home/finder.nix
Normal file
170
home/finder.nix
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
let
|
||||||
|
columnSettings = {
|
||||||
|
name = {
|
||||||
|
visible = true;
|
||||||
|
width = 300;
|
||||||
|
index = 1;
|
||||||
|
};
|
||||||
|
dateModified = {
|
||||||
|
visible = true;
|
||||||
|
width = 150;
|
||||||
|
index = 2;
|
||||||
|
};
|
||||||
|
dateCreated = {
|
||||||
|
visible = true;
|
||||||
|
width = 150;
|
||||||
|
index = 3;
|
||||||
|
};
|
||||||
|
size = {
|
||||||
|
visible = true;
|
||||||
|
index = 4;
|
||||||
|
width = 100;
|
||||||
|
};
|
||||||
|
dateLastOpened = {
|
||||||
|
visible = true;
|
||||||
|
width = 150;
|
||||||
|
index = 5;
|
||||||
|
};
|
||||||
|
kind = {
|
||||||
|
visible = true;
|
||||||
|
width = 100;
|
||||||
|
index = 6;
|
||||||
|
};
|
||||||
|
comments = {
|
||||||
|
visible = false;
|
||||||
|
width = 200;
|
||||||
|
index = 7;
|
||||||
|
};
|
||||||
|
label = {
|
||||||
|
visible = false;
|
||||||
|
width = 50;
|
||||||
|
index = 8;
|
||||||
|
};
|
||||||
|
version = {
|
||||||
|
visible = false;
|
||||||
|
width = 50;
|
||||||
|
index = 9;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
listviewsettings = {
|
||||||
|
calculateAllSizes = true;
|
||||||
|
showIconPreview = true;
|
||||||
|
iconSize = 16;
|
||||||
|
textSize = 13;
|
||||||
|
sortColumn = "name";
|
||||||
|
useRelativeDates = true;
|
||||||
|
viewOptionsVersion = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
default-view-settings = {
|
||||||
|
ExtendedListViewSettingsV2 = {
|
||||||
|
columns = builtins.sort (a: b: a.index < b.index) (map
|
||||||
|
(name:
|
||||||
|
(name: value: {
|
||||||
|
identifier = "${name}";
|
||||||
|
visible = value.visible;
|
||||||
|
width = value.width;
|
||||||
|
index = value.index;
|
||||||
|
}) name
|
||||||
|
columnSettings.${name})
|
||||||
|
(builtins.attrNames columnSettings));
|
||||||
|
} // listviewsettings;
|
||||||
|
ListViewSettings = { columns = columnSettings; } // listviewsettings;
|
||||||
|
};
|
||||||
|
|
||||||
|
dvs-with-ws = {
|
||||||
|
WindowState = {
|
||||||
|
ContainerShowSidebar = true;
|
||||||
|
ShowStatusBar = true;
|
||||||
|
ShowSidebar = true;
|
||||||
|
ShowToolbar = true;
|
||||||
|
ShowTabView = true;
|
||||||
|
};
|
||||||
|
} // default-view-settings;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
targets.darwin.defaults."com.apple.finder" = {
|
||||||
|
AppleShowAllExtensions = true;
|
||||||
|
|
||||||
|
ComputerViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
CreateDesktop = false;
|
||||||
|
|
||||||
|
DesktopViewSettings = { GroupBy = "Kind"; };
|
||||||
|
|
||||||
|
FinderSpawnTab = false;
|
||||||
|
|
||||||
|
FK_DefaultListViewSettingsV2 =
|
||||||
|
default-view-settings.ExtendedListViewSettingsV2;
|
||||||
|
|
||||||
|
FK_StandardViewSettings = {
|
||||||
|
SettingsType = "FK_StandardViewSettings";
|
||||||
|
} // default-view-settings;
|
||||||
|
|
||||||
|
FK_iCloudListViewSettingsV2 =
|
||||||
|
default-view-settings.ExtendedListViewSettingsV2;
|
||||||
|
|
||||||
|
FXArrangeGroupViewBy = "Name";
|
||||||
|
|
||||||
|
FXDefaultSearchScope = "SCsp";
|
||||||
|
|
||||||
|
FXEnableExtensionChangeWarning = false;
|
||||||
|
|
||||||
|
FXEnableRemoveFromICloudDriveWarning = false;
|
||||||
|
|
||||||
|
FXICloudDriveDocuments = true;
|
||||||
|
|
||||||
|
FXICloudDriveEnabled = true;
|
||||||
|
|
||||||
|
FXPreferredGroupBy = "Kind";
|
||||||
|
|
||||||
|
FXPreferredViewStyle = "Nlsv";
|
||||||
|
|
||||||
|
GoToField = "~/Library/";
|
||||||
|
|
||||||
|
ICloudViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
NetworkViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
NSDocumentSaveNewDocumentsToCloud = false;
|
||||||
|
|
||||||
|
NSTableViewDefaultSizeMode = 1;
|
||||||
|
|
||||||
|
PackageViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
RecentsArrangeGroupViewBy = "Date Last Opened";
|
||||||
|
|
||||||
|
SearchViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
ShowExternalHardDrivesOnDesktop = false;
|
||||||
|
|
||||||
|
ShowHardDrivesOnDesktop = false;
|
||||||
|
|
||||||
|
ShowPathbar = true;
|
||||||
|
|
||||||
|
ShowRemovableMediaOnDesktop = false;
|
||||||
|
|
||||||
|
ShowSidebar = true;
|
||||||
|
|
||||||
|
showWindowTitlebarIcons = false;
|
||||||
|
|
||||||
|
SidebarWidth = 135;
|
||||||
|
|
||||||
|
SidebarZoneOrder1 = [ "icloud_drive" "favorites" "devices" "tags" ];
|
||||||
|
|
||||||
|
StandardViewSettings = {
|
||||||
|
SettingsType = "StandardViewSettings";
|
||||||
|
} // default-view-settings;
|
||||||
|
|
||||||
|
TrashViewSettings = dvs-with-ws;
|
||||||
|
|
||||||
|
WarnOnEmptyTrash = false;
|
||||||
|
|
||||||
|
_FXShowPosixPathInTitle = true;
|
||||||
|
|
||||||
|
_FXSortFoldersFirst = true;
|
||||||
|
|
||||||
|
_FXSortFoldersFirstOnDesktop = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -226,7 +226,9 @@ let
|
||||||
"Visual Bell" = true;
|
"Visual Bell" = true;
|
||||||
"Window Type" = 0;
|
"Window Type" = 0;
|
||||||
} // dracula_plus;
|
} // dracula_plus;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
targets.darwin.defaults."com.googlecode.iterm2" = {
|
||||||
"AlternateMouseScroll" = true;
|
"AlternateMouseScroll" = true;
|
||||||
"Default Bookmark Guid" = "30FFD0AB-B2EB-4635-9469-D089C1D9E106";
|
"Default Bookmark Guid" = "30FFD0AB-B2EB-4635-9469-D089C1D9E106";
|
||||||
"HotkeyMigratedFromSingleToMulti" = true;
|
"HotkeyMigratedFromSingleToMulti" = true;
|
||||||
|
@ -282,4 +284,5 @@ in {
|
||||||
"Working Directory" = "/Users/willem";
|
"Working Directory" = "/Users/willem";
|
||||||
} // profile_defaults)
|
} // profile_defaults)
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue