update sway main machine to newest, fix deprecations, add gnome keyring

This commit is contained in:
Nathan Anderson 2025-12-12 21:55:49 -07:00
parent b4cecaff69
commit 67331242df
13 changed files with 36 additions and 44 deletions

View File

@ -105,7 +105,6 @@
enable = true; enable = true;
terminal = "ghostty"; terminal = "ghostty";
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
services.syncthing = { services.syncthing = {

View File

@ -16,7 +16,6 @@ exec hash dbus-update-activation-environment 2>/dev/null && \
# exec python3 ~/.config/sway/scripts/swayfader.py # exec python3 ~/.config/sway/scripts/swayfader.py
# gpu controller # gpu controller
exec corectrl
exec keepassxc exec keepassxc
exec kdeconnect-indicator exec kdeconnect-indicator

View File

@ -187,7 +187,6 @@
}; };
}; };
}; };
}; };
# Better git diffs with delta # Better git diffs with delta
programs.delta = { programs.delta = {

View File

@ -115,7 +115,6 @@ in
# thunar-volman # thunar-volman
# ]; # ];
# }; # };
# programs.file-roller.enable = true;
# For nautilus # For nautilus
services.gnome.sushi.enable = true; services.gnome.sushi.enable = true;
programs.nautilus-open-any-terminal = { programs.nautilus-open-any-terminal = {

View File

@ -102,7 +102,6 @@
thunar-volman thunar-volman
]; ];
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
@ -112,7 +111,7 @@
programs.adb.enable = true; programs.adb.enable = true;
# programs.kdeconnect.enable = true; # programs.kdeconnect.enable = true;
# service file to start the sshAgent # service file to start the sshAgent
programs.ssh.startAgent = true; programs.ssh.startAgent = false; # using gnome keyring
### ###
## Services ## Services

View File

@ -70,6 +70,7 @@
# android-udev-rules # android-udev-rules
# android-tools # android-tools
# sdkmanager # sdkmanager
unstable.opencode
unstable.claude-code unstable.claude-code
# #
@ -97,6 +98,7 @@
# Photo / Video # Photo / Video
# #
unstable.davinci-resolve-studio unstable.davinci-resolve-studio
obs-studio
# davinciDesktop # davinciDesktop
imv imv
mpv mpv
@ -124,13 +126,6 @@
recursive recursive
]; ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
# home.file."${config.xdg.configHome}" = {
# source = ../../dotfiles;
# recursive = true;
# };
home.file = lib.mkMerge [ home.file = lib.mkMerge [
# Shared dotfiles # Shared dotfiles
(let (let
@ -182,18 +177,17 @@
}; };
}; };
# For applying custom styles
# home.file.".mozilla/firefox/default" = {
# source = ../../misc/firefox_styles;
# recursive = true;
# };
# location where stylus data is kept
# /home/nate/.mozilla/firefox/default/storage/default/moz-extension+++77a1d59f-183c-4439-b249-fdae98b7bd7b/idb
services.kdeconnect = { services.kdeconnect = {
enable = true; enable = true;
indicator = true; indicator = true;
}; };
# enable saving ssh secrets (needed for go mod installing private packages)
services.gnome-keyring.enable = true;
services.gnome-keyring.components = [ "ssh" "secrets" ];
# Enable bluetooth headphone controls
services.mpris-proxy.enable = true;
home.sessionVariables = { home.sessionVariables = {
# MANPAGER="sh -c 'col -bx | bat -l man -p'"; # MANPAGER="sh -c 'col -bx | bat -l man -p'";
BAT_THEME="Catppuccin Macchiato"; BAT_THEME="Catppuccin Macchiato";
@ -205,35 +199,46 @@
# Git setup # Git setup
programs.git = { programs.git = {
enable = true; enable = true;
userEmail = email; settings = {
userName = fullName; user.name = fullName;
extraConfig = { user.email = email;
include = { path = "${config.xdg.configHome}/macchiato.gitconfig"; };
init = { defaultBranch = "main"; }; init = { defaultBranch = "main"; };
pull = { ff = "only"; };
merge = { conflictStyle="zdiff3"; }; merge = { conflictStyle="zdiff3"; };
pull = { ff = "only"; };
push = { autoSetupRemote="true"; }; push = { autoSetupRemote="true"; };
delta = { features = "Catppuccin Macchiato"; }; # Vasion rewrite rule
url = {
"git@github.com:" = {
insteadOf = "https://github.com/";
};
};
}; };
delta.enable = true;
}; };
# Better git diffs with delta
programs.delta = {
enable = true;
enableGitIntegration = true;
options = {
side-by-side = true;
hyperlinks = true;
};
};
# direnv for auto nix flake shells
programs = { programs = {
direnv = { direnv = {
enable = true; enable = true;
enableZshIntegration = true; # see note on other shells below enableZshIntegration = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
bash.enable = true; # see note on other shells below bash.enable = true;
}; };
# Zsh setup # Zsh setup
programs.zsh = { programs.zsh = {
enable = true; enable = true;
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
plugins = [ "git" "ssh-agent" ]; plugins = [ "git" ];
theme = "half-life"; theme = "half-life";
extraConfig = extraConfig =
'' ''
@ -241,6 +246,9 @@
''; '';
}; };
initContent = '' initContent = ''
# integrate ssh-agent from gnome keyring
export SSH_AUTH_SOCK=/run/user/$UID/gcr/ssh
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
yt-audio() { yt-audio() {

View File

@ -101,7 +101,6 @@
enable = true; enable = true;
terminal = "foot"; terminal = "foot";
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
@ -120,15 +119,11 @@
}; };
}; };
}; };
programs.corectrl = {
enable = true;
gpuOverclock.enable = true;
};
programs.adb.enable = true; programs.adb.enable = true;
# programs.kdeconnect.enable = true; # programs.kdeconnect.enable = true;
# service file to start the sshAgent # service file to start the sshAgent
programs.ssh.startAgent = true; programs.ssh.startAgent = false; # using gnome keyring
### ###
## Services ## Services

View File

@ -41,7 +41,6 @@ in
"adbusers" "adbusers"
"audio" "audio"
cfg.userName cfg.userName
"corectrl"
"dialout" "dialout"
"docker" "docker"
"networkmanager" "networkmanager"

View File

@ -148,7 +148,6 @@ in
thunar-volman thunar-volman
]; ];
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
# sound.enable = false; # sound.enable = false;
# services.xserver = { # services.xserver = {

View File

@ -191,7 +191,6 @@
### --- ### ---
# nur.repos.crazazy.js.eslint # nur.repos.crazazy.js.eslint
# inputs.nixpkgs-stable.legacyPackages.x86_64-linux.corectrl
chromium chromium
# #
# Dev Tools # Dev Tools

View File

@ -98,7 +98,6 @@
thunar-volman thunar-volman
]; ];
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;

View File

@ -102,7 +102,6 @@
thunar-volman thunar-volman
]; ];
}; };
programs.file-roller.enable = true;
programs.xfconf.enable = true; programs.xfconf.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;

View File

@ -40,7 +40,6 @@ in
extraGroups = [ extraGroups = [
"wheel" "wheel"
"networkmanager" "networkmanager"
"corectrl"
cfg.userName cfg.userName
"video" "video"
"audio" "audio"