summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2026-01-08 11:20:15 +0530
committeranand <anand.panchdhari@gmail.com>2026-01-08 11:20:15 +0530
commitb5adb5105d21b164e8e4e6ed90b3c8306f8a07b9 (patch)
tree2c6bb0e154fa6d1cd338fd776f52522bed90e5a9
parentf358e02e8ab12c87c8acac057b163993969c5f5d (diff)
changed a few things
removed polybar, changed gpg pinentry to gnome3 moved thunar plugins to the top level and some other things I suppose.
-rw-r--r--configuration.nix7
-rw-r--r--flake.lock18
-rwxr-xr-xhome.nix1
-rwxr-xr-xnvim/init.lua37
4 files changed, 51 insertions, 12 deletions
diff --git a/configuration.nix b/configuration.nix
index 118af27..b44e5b1 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -112,7 +112,6 @@
ly
pavucontrol
waybar
- polybar
pass
rofi
rofimoji
@@ -162,7 +161,7 @@
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
- pinentryPackage = pkgs.pinentry-curses;
+ pinentryPackage = pkgs.pinentry-gnome3;
};
programs.hyprland = {
enable = true;
@@ -171,7 +170,7 @@
programs.firefox.enable = true;
programs.thunar = {
enable = true;
- plugins = with pkgs.xfce; [
+ plugins = with pkgs; [
thunar-volman
thunar-archive-plugin
thunar-media-tags-plugin
@@ -193,6 +192,8 @@
};
};
+ services.power-profiles-daemon.enable = false;
+ services.desktopManager.cosmic.enable = true;
services.gvfs.enable = true;
services.tumbler.enable = true;
services.openssh.enable = true;
diff --git a/flake.lock b/flake.lock
index 03ad97f..075f7b1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -45,11 +45,11 @@
]
},
"locked": {
- "lastModified": 1766881808,
- "narHash": "sha256-JR7A2xS3EBPWFeONzhqez5vp7nKEsp7eLj2Ks210Srk=",
+ "lastModified": 1767850634,
+ "narHash": "sha256-NAiR9fhHh+Hlw+NbEkf1TlJdBUtVuc+gKNAT8NRaOxY=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "d2e0458d6531885600b346e161c38790dc356fa8",
+ "rev": "86e0f6f22791a82a694c946b0200662417624eb8",
"type": "github"
},
"original": {
@@ -67,11 +67,11 @@
"scenefx": "scenefx"
},
"locked": {
- "lastModified": 1766887727,
- "narHash": "sha256-kNHRtEakdzuZq2RO/5EWLC1s5PjYLi7fXwxT2ZIm/1g=",
+ "lastModified": 1767838401,
+ "narHash": "sha256-eyp6ZplrPoSU5FC2SJSfdMhuIImbWjws+bT1E7+evR8=",
"owner": "DreamMaoMao",
"repo": "mango",
- "rev": "af1f7850ee788c6a23085c117d0310f631b9c271",
+ "rev": "4efb8c5e06debc3a32a711e3508593cfd1e1fb48",
"type": "github"
},
"original": {
@@ -82,11 +82,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1766651565,
- "narHash": "sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU=",
+ "lastModified": 1767767207,
+ "narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "3e2499d5539c16d0d173ba53552a4ff8547f4539",
+ "rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
"type": "github"
},
"original": {
diff --git a/home.nix b/home.nix
index 9446305..c61be54 100755
--- a/home.nix
+++ b/home.nix
@@ -97,6 +97,7 @@ in
fd
imv
libreoffice
+ godot
];
xdg.configFile = builtins.mapAttrs (name: subpath: {
diff --git a/nvim/init.lua b/nvim/init.lua
index f6d5082..3f6c3b5 100755
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -51,6 +51,43 @@ vim.api.nvim_create_autocmd("TextYankPost", {
end,
})
+-- Godot
+-- Function to find Godot project root directory
+local function find_godot_project_root()
+ local cwd = vim.fn.getcwd()
+ local search_paths = { '', '/..' }
+
+ for _, relative_path in ipairs(search_paths) do
+ local project_file = cwd .. relative_path .. '/project.godot'
+ if vim.uv.fs_stat(project_file) then
+ return cwd .. relative_path
+ end
+ end
+
+ return nil
+end
+
+-- Function to check if server is already running
+local function is_server_running(project_path)
+ local server_pipe = project_path .. '/server.pipe'
+ return vim.uv.fs_stat(server_pipe) ~= nil
+end
+
+-- Function to start Godot server if needed
+local function start_godot_server_if_needed()
+ local godot_project_path = find_godot_project_root()
+
+ if godot_project_path and not is_server_running(godot_project_path) then
+ vim.fn.serverstart(godot_project_path .. '/server.pipe')
+ return true
+ end
+
+ return false
+end
+
+-- Main execution
+start_godot_server_if_needed()
+
require('mini.deps').setup({ path = { package = path_package } })
local add = require('mini.deps').add