some apps, and GPG/SSH

This commit is contained in:
Olaf
2026-03-24 07:34:30 +01:00
parent 2e0bc0bae2
commit acf2b21f72
5 changed files with 75 additions and 43 deletions

View File

@@ -40,6 +40,9 @@
nix-vscode-extensions = { nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions"; url = "github:nix-community/nix-vscode-extensions";
}; };
catppuccin= {
url = "github:catppuccin/nix";
};
# mac-app-util doesn't work with OCLP installed on X86 # mac-app-util doesn't work with OCLP installed on X86
# mac-app-util = { # mac-app-util = {
@@ -60,7 +63,8 @@
nixd, nixd,
sops-nix, sops-nix,
nix-vscode-extensions, nix-vscode-extensions,
# mac-app-util, catppuccin,
...
}@inputs: }@inputs:
let let
user = "olaf"; user = "olaf";
@@ -109,18 +113,12 @@
mkLinuxApps = system: { mkLinuxApps = system: {
"apply" = mkApp "apply" system; "apply" = mkApp "apply" system;
"build-switch" = mkApp "build-switch" system; "build-switch" = mkApp "build-switch" system;
"copy-keys" = mkApp "copy-keys" system;
"create-keys" = mkApp "create-keys" system;
"check-keys" = mkApp "check-keys" system;
"install" = mkApp "install" system; "install" = mkApp "install" system;
}; };
mkDarwinApps = system: { mkDarwinApps = system: {
"apply" = mkApp "apply" system; "apply" = mkApp "apply" system;
"build" = mkApp "build" system; "build" = mkApp "build" system;
"build-switch" = mkApp "build-switch" system; "build-switch" = mkApp "build-switch" system;
"copy-keys" = mkApp "copy-keys" system;
"create-keys" = mkApp "create-keys" system;
"check-keys" = mkApp "check-keys" system;
"rollback" = mkApp "rollback" system; "rollback" = mkApp "rollback" system;
}; };
in in
@@ -154,6 +152,8 @@
}; };
home-manager.sharedModules = [ home-manager.sharedModules = [
# mac-app-util.homeManagerModules.default # mac-app-util.homeManagerModules.default
catppuccin.homeModules.catppuccin
]; ];
} }
./hosts/darwin ./hosts/darwin

View File

@@ -17,6 +17,7 @@ let
additionalFiles = import ./files.nix { inherit user config pkgs; }; additionalFiles = import ./files.nix { inherit user config pkgs; };
in in
{ {
imports = [ imports = [
./dock ./dock
]; ];
@@ -50,15 +51,15 @@ in
"Affinity Designer 2" = 1616831348; "Affinity Designer 2" = 1616831348;
"Affinity Photo 2: Image Editor" = 1616822987; "Affinity Photo 2: Image Editor" = 1616822987;
"Affinity Publisher 2" = 1606941598; "Affinity Publisher 2" = 1606941598;
"DaisyDisk" = 411643860 ; # (4.32) "DaisyDisk" = 411643860; # (4.32)
"Fantastical - Calendar" = 975937182; "Fantastical - Calendar" = 975937182;
"Home Assistant" = 1099568401; # (2025.7.1) "Home Assistant" = 1099568401; # (2025.7.1)
"Ice Cubes for Mastodon" = 6444915884; # (1.11.3) "Ice Cubes for Mastodon" = 6444915884; # (1.11.3)
"LibreOffice" = 1630474372; "LibreOffice" = 1630474372;
"Monal - XMPP Chatting "=1637078500; # "Monal - XMPP Chatting " = 1637078500;
"MQTT Explorer" = 1455214828; # (0.3.5) "MQTT Explorer" = 1455214828; # (0.3.5)
"Night Sky" = 475772902; # 475772902 "Night Sky" = 475772902; # 475772902
"Native SQLite Manager"= 1416282836; # (1.31.0) "Native SQLite Manager" = 1416282836; # (1.31.0)
"Remarkable Desktop" = 1276493162; # (3.19.0) "Remarkable Desktop" = 1276493162; # (3.19.0)
"Slack for Desktop" = 803453959; # (4.45.60) "Slack for Desktop" = 803453959; # (4.45.60)
"WiFi Explorer: Scanner" = 494803304; # (3.5.6) "WiFi Explorer: Scanner" = 494803304; # (3.5.6)
@@ -77,6 +78,7 @@ in
... ...
}: }:
{ {
home = { home = {
enableNixpkgsReleaseCheck = false; enableNixpkgsReleaseCheck = false;
packages = pkgs.callPackage ./packages.nix { }; packages = pkgs.callPackage ./packages.nix { };
@@ -84,11 +86,30 @@ in
sharedFiles sharedFiles
additionalFiles additionalFiles
{ "emacs-launcher.command".source = myEmacsLauncher; } { "emacs-launcher.command".source = myEmacsLauncher; }
]; ];
stateVersion = "23.11"; stateVersion = "23.11";
}; };
programs = { } // import ../shared/home-manager.nix { inherit config pkgs lib; }; programs = {
} // import ../shared/home-manager.nix { inherit config pkgs lib; };
catppuccin = {
enable = true;
flavor = "mocha";
};
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
extraConfig = ''
default-cache-ttl 600
max-cache-ttl 7200
pinentry-program /Users/olaf/.nix-profile/bin/pinentry-mac
'';
};
};
# Marked broken Oct 20, 2022 check later to remove this # Marked broken Oct 20, 2022 check later to remove this
# https://github.com/nix-community/home-manager/issues/3344 # https://github.com/nix-community/home-manager/issues/3344
@@ -119,12 +140,14 @@ in
{ path = "/Applications/iTerm.app/"; } { path = "/Applications/iTerm.app/"; }
{ path = "/Applications/Fantastical.app/"; } { path = "/Applications/Fantastical.app/"; }
# { path = "${pkgs.alacritty}/Applications/Alacritty.app/"; } { path = "${pkgs.alacritty}/Applications/Alacritty.app/"; }
# { path = "/Applications/Spotify.app/"; } # { path = "/Applications/Spotify.app/"; }
{ path = "/Applications/Qobuz.app/"; } { path = "/Applications/Qobuz.app/"; }
{ path = "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/"; } { path = "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/"; }
{ path = "/run/current-system/Applications/Brave Browser.app/"; {
options = "-l Brave"; } path = "/run/current-system/Applications/Brave Browser.app/";
options = "-l Brave";
}
{ path = "/System/Applications/Photos.app/"; } { path = "/System/Applications/Photos.app/"; }
{ path = "/System/Applications/System Settings.app/"; } { path = "/System/Applications/System Settings.app/"; }
{ path = "/Applications/Signal.app/"; } { path = "/Applications/Signal.app/"; }

View File

@@ -8,7 +8,7 @@
let let
user = "olaf"; user = "olaf";
xdg_configHome = "/home/${user}/.config"; xdg_configHome = "/home/${user}/.config";
shared-programs = import ../shared/home-manager.nix { inherit config pkgs lib; }; shared-programs = import ../shared/home-manager.nix { inherit config pkgs lib; };
shared-files = import ../shared/files.nix { inherit config pkgs; }; shared-files = import ../shared/files.nix { inherit config pkgs; };
polybar-user_modules = builtins.readFile ( polybar-user_modules = builtins.readFile (

View File

@@ -11,6 +11,16 @@ let
in in
{ {
gpg = {
enable = true;
settings = {
default-key = "01B157D574FEDBB2" ;
no-emit-version = true;
auto-key-retrieve = true;
personal-digest-preferences= "SHA512 SHA384 SHA256 SHA224";
};
};
# Shared shell configuration # Shared shell configuration
zsh = { zsh = {
@@ -34,6 +44,10 @@ in
. /nix/var/nix/profiles/default/etc/profile.d/nix.sh . /nix/var/nix/profiles/default/etc/profile.d/nix.sh
fi fi
# GPGAgent for SSH
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
# Define variables for directories # Define variables for directories
export PATH=$HOME/.pnpm-packages/bin:$HOME/.pnpm-packages:$PATH export PATH=$HOME/.pnpm-packages/bin:$HOME/.pnpm-packages:$PATH
export PATH=$HOME/.npm-packages/bin:$HOME/bin:$PATH export PATH=$HOME/.npm-packages/bin:$HOME/bin:$PATH
@@ -305,23 +319,13 @@ in
controlMaster = "no"; controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p"; controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no"; controlPersist = "no";
}; };
includes = [ includes = [
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux "/home/${user}/.ssh/config_external") (lib.mkIf pkgs.stdenv.hostPlatform.isLinux "/home/${user}/.ssh/config_external")
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "/Users/${user}/.ssh/config_external") (lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "/Users/${user}/.ssh/config_external")
]; ];
matchBlocks = { matchBlocks = {
"Host *" = { "moonunit.kolkman.org" = {
identityAgent = "\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"";
};
"github.com" = {
identitiesOnly = true;
identityFile = [
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux "/home/${user}/.ssh/id_github")
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "/Users/${user}/.ssh/id_github")
];
};
"moonunit.kolkman.org" = {
hostname = "moonunit.kolkman.org"; hostname = "moonunit.kolkman.org";
user = "root"; user = "root";
port = 2222; port = 2222;
@@ -412,4 +416,7 @@ in
bind-key -T copy-mode-vi 'C-\' select-pane -l bind-key -T copy-mode-vi 'C-\' select-pane -l
''; '';
}; };
} }

View File

@@ -11,12 +11,14 @@ with pkgs;
firefox firefox
# google-chrome. #stopped working # google-chrome. #stopped working
# security and some such
bitwarden-desktop bitwarden-desktop
bitwarden-cli # bitwarden-cli
yubikey-manager # provides ykman
pinentry_mac
# General packages for development and system management # General packages for development and system management
#alacritty alacritty
ansible ansible
aspell aspell
aspellDicts.en aspellDicts.en
@@ -90,7 +92,7 @@ with pkgs;
htop htop
hunspell hunspell
iftop iftop
inetutils # includes Telnet # inetutils # includes Telnet
jetbrains-mono jetbrains-mono
jq jq
ripgrep ripgrep