From 101ee551b51a8168d76b3747066f7ef8d0202039 Mon Sep 17 00:00:00 2001 From: Adrian G L Date: Tue, 6 Jan 2026 20:22:40 +0100 Subject: [PATCH] inital homemanager reconfig --- .viminfo | 122 ++++++++++++++++++++++++++++++++++++++++++++++++ home/gunalx.nix | 2 +- home/xdg.nix | 45 ++++++++++++------ home/zed.nix | 14 ++++++ modules/xdg.nix | 53 +++++++++++++++------ 5 files changed, 208 insertions(+), 28 deletions(-) create mode 100644 .viminfo diff --git a/.viminfo b/.viminfo new file mode 100644 index 0000000..f79d6f5 --- /dev/null +++ b/.viminfo @@ -0,0 +1,122 @@ +# This viminfo file was generated by Vim 9.1. +# You may edit it if you're careful! + +# Viminfo version +|1,4 + +# Value of 'encoding' when this file was written +*encoding=utf-8 + + +# hlsearch on (H) or off (h): +~h +# Last Search Pattern: +~Msle0~/} + +# Command Line History (newest to oldest): +:wq +|2,0,1767395245,,"wq" + +# Search String History (newest to oldest): +? } +|2,1,1767395059,,"}" +? \ +|2,1,1767395050,,"\\" +? \ +|2,1,1767395031,,"\\" + +# Expression History (newest to oldest): + +# Input Line History (newest to oldest): + +# Debug Line History (newest to oldest): + +# Registers: +""- CHAR 0 + # +|3,1,36,0,1,0,1767395242,"#" + +# File marks: +'0 102 10 ~/flake.nix +|4,48,102,10,1767395245,"~/flake.nix" +'1 92 10 ~/flake.nix +|4,49,92,10,1767395070,"~/flake.nix" +'2 92 10 ~/flake.nix +|4,50,92,10,1767395070,"~/flake.nix" +'3 17 4 ~/home/xdg.nix +|4,51,17,4,1767395009,"~/home/xdg.nix" + +# Jumplist (newest first): +-' 102 10 ~/flake.nix +|4,39,102,10,1767395245,"~/flake.nix" +-' 92 10 ~/flake.nix +|4,39,92,10,1767395234,"~/flake.nix" +-' 92 10 ~/flake.nix +|4,39,92,10,1767395070,"~/flake.nix" +-' 102 10 ~/flake.nix +|4,39,102,10,1767395059,"~/flake.nix" +-' 100 12 ~/flake.nix +|4,39,100,12,1767395050,"~/flake.nix" +-' 100 12 ~/flake.nix +|4,39,100,12,1767395050,"~/flake.nix" +-' 96 12 ~/flake.nix +|4,39,96,12,1767395031,"~/flake.nix" +-' 96 12 ~/flake.nix +|4,39,96,12,1767395031,"~/flake.nix" +-' 1 0 ~/flake.nix +|4,39,1,0,1767395014,"~/flake.nix" +-' 1 0 ~/flake.nix +|4,39,1,0,1767395014,"~/flake.nix" +-' 17 4 ~/home/xdg.nix +|4,39,17,4,1767395009,"~/home/xdg.nix" +-' 17 4 ~/home/xdg.nix +|4,39,17,4,1767395009,"~/home/xdg.nix" +-' 17 4 ~/home/xdg.nix +|4,39,17,4,1767395009,"~/home/xdg.nix" +-' 17 4 ~/home/xdg.nix +|4,39,17,4,1767395009,"~/home/xdg.nix" +-' 1 0 ~/home/xdg.nix +|4,39,1,0,1767394999,"~/home/xdg.nix" +-' 1 0 ~/home/xdg.nix +|4,39,1,0,1767394999,"~/home/xdg.nix" +-' 1 0 ~/home/xdg.nix +|4,39,1,0,1767394999,"~/home/xdg.nix" +-' 1 0 ~/home/xdg.nix +|4,39,1,0,1767394999,"~/home/xdg.nix" + +# History of marks within files (newest to oldest): + +> ~/flake.nix + * 1767395243 0 + " 102 10 + ^ 92 11 + . 102 10 + + 95 12 + + 96 12 + + 97 12 + + 98 12 + + 99 12 + + 100 12 + + 101 12 + + 102 10 + + 93 10 + + 92 10 + + 93 10 + + 95 12 + + 96 12 + + 97 12 + + 98 12 + + 99 12 + + 100 12 + + 101 12 + + 102 10 + +> ~/home/xdg.nix + * 1767395008 0 + " 17 4 + ^ 17 5 + . 17 4 + + 14 4 + + 15 4 + + 16 4 + + 17 4 diff --git a/home/gunalx.nix b/home/gunalx.nix index 77a905f..b23c896 100644 --- a/home/gunalx.nix +++ b/home/gunalx.nix @@ -13,7 +13,7 @@ ./atuin.nix ./git.nix ./bash.nix - ./xdg.nix + #./xdg.nix # theming ./colors.nix diff --git a/home/xdg.nix b/home/xdg.nix index 447a859..6f22bfb 100644 --- a/home/xdg.nix +++ b/home/xdg.nix @@ -4,22 +4,39 @@ config, ... }: -{ - home.packages = with pkgs; [ - xdg-desktop-portal-gtk - xdg-desktop-portal - #xdg-desktop-portal-wlr - xdg-desktop-portal-gtk - xdg-desktop-portal-gnome - kdePackages.xdg-desktop-portal-kde - xdg-launch - xdg-ninja - xdg-utils - ]; +{ + # Enable XDG base directories xdg.enable = true; - # home.sessionVariables = { - # }; + # Install the necessary packages for XDG compliance and management + home.packages = with pkgs; [ + xdg-utils + xdg-launch + xdg-ninja + ]; + # Define session variables for XDG directories + home.sessionVariables = { + # Set other tools' paths to XDG directories (they should be relative to XDG_DATA_HOME or XDG_STATE_HOME) + GOPATH = "$XDG_DATA_HOME/go"; + CARGO_HOME = "$XDG_DATA_HOME/cargo"; + RUSTUP_HOME = "$XDG_DATA_HOME/rustup"; + DOTNET_CLI_HOME = "$XDG_DATA_HOME/dotnet"; + GNUPGHOME = "$XDG_DATA_HOME/gnupg"; + ZDOTDIR = "$XDG_CONFIG_HOME/zsh"; # Optional, for Zsh configuration + HISTFILE = "$XDG_STATE_HOME/bash/history"; # Optional, for Bash history file location + }; + + # Enable XDG user directories (like Documents, Downloads, etc.) + xdg.userDirs.enable = true; + xdg.userDirs.createDirectories = true; + + # Enable autostart functionality with read-only mode (prevents arbitrary service additions) + xdg.autostart.enable = true; + xdg.autostart.readOnly = true; + + # Handle XDG MIME type associations (useful for apps) + xdg.mime.enable = true; + xdg.mimeApps.enable = true; } diff --git a/home/zed.nix b/home/zed.nix index 23f9b4b..ccca4a2 100644 --- a/home/zed.nix +++ b/home/zed.nix @@ -15,6 +15,7 @@ programs.zed-editor = { enable = true; + #package = pkgs.zed-editor-fhs; package = pkgs.unstable.zed-editor-fhs; extraPackages = with pkgs; [ nodejs @@ -59,6 +60,19 @@ dark = "Tokyo Night"; light = "Tokyo Night Storm"; }; + + features = { + edit_prediction_provider = "copilot"; + }; + agent = { + default_profile = "write"; + default_model = { + provider = "copilot_chat"; + model = "claude-opus-4.5"; + }; + model_parameters = [ ]; + }; + hour_format = "hour24"; node = { path = lib.getExe pkgs.nodejs; diff --git a/modules/xdg.nix b/modules/xdg.nix index 9555a16..f743672 100644 --- a/modules/xdg.nix +++ b/modules/xdg.nix @@ -4,38 +4,65 @@ config, ... }: -{ +{ environment.systemPackages = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gnome pkgs.xdg-desktop-portal ]; + # XDG related configurations xdg = { - autostart.enable = true; - menus.enable = true; - icons.enable = true; - sounds.enable = true; + # Enable desktop portal integration portal = { - enable = true; - xdgOpenUsePortal = true; + enable = true; # Enable the portal system + xdgOpenUsePortal = true; # Use portal for opening files and URLs + + # Additional portals for specific environments extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal - #xdg-desktop-portal-wlr - xdg-desktop-portal-gtk xdg-desktop-portal-gnome - kdePackages.xdg-desktop-portal-kde - xdg-launch - xdg-ninja - xdg-utils + kdePackages.xdg-desktop-portal-kde # For KDE environment ]; + + # Configuration packages for portals (like GNOME session, Niri, etc.) configPackages = with pkgs; [ gnome-session niri ]; }; + + # Enable autostart functionality (launch apps on login) + autostart.enable = true; + + # Enable menu support for applications + menus.enable = true; + + # Enable icon theme support (icons for applications, etc.) + icons.enable = true; + + # Enable sounds for system events (like notifications) + sounds.enable = true; + + # Terminal execution for XDG spec terminal-exec.enable = true; }; + + # Enable MIME type handling for file associations + xdg.mime.enable = true; + + # Enable additional configurations for portals + xdg.portal.wlr.enable = false; # Disable Wayland/Weston portal support (as you've commented out) + xdg.portal.lxqt.styles = true; # Enable LXQt portal styles (optional) + xdg.portal.lxqt.enable = false; # Disable LXQt portal integration (commented out as unnecessary) + + # Icons + xdg.icons.fallbackCursorThemes = [ "Adwaita" ]; # Set a default cursor theme (you can change this) + + # Terminal execution configuration + xdg.terminal-exec.package = pkgs.xterm; # Choose the terminal emulator (can be changed to your preference) + xdg.terminal-exec.settings = { }; # Terminal-specific settings (customizable) + }