[nix] Allow unfree for shells. [docker] Correctly export DOCKER_HOST. [nvim] Disable augment and turn on vtsls

This commit is contained in:
2025-05-11 11:21:36 -07:00
parent 945d3aa002
commit 23d71b3a09
5 changed files with 21 additions and 10 deletions

View File

@@ -1,8 +1,6 @@
{ pkgs, ... }:
{
# Podman is enabled at the system level.
home.packages = with pkgs; [
podman-compose
docker-compose
];
}

View File

@@ -1,3 +1,4 @@
return {
"augmentcode/augment.vim",
enable = false,
}

View File

@@ -5,6 +5,10 @@ return {
servers = {
lua_ls = {},
nil_ls = {},
vtsls = {},
},
codelens = {
enable = true,
},
},
},

View File

@@ -7,10 +7,11 @@
};
};
home-manager.users.drew = { ... }:
home-manager.users.drew =
{ ... }:
{
# Add the path to the docker socket to the environment.
programs.zsh.profileExtra = ''
programs.zsh.envExtra = ''
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
'';
};

View File

@@ -11,6 +11,7 @@ in
"/features/development/development.nix"
"/features/development/docker.nix"
"/features/development/haskell.nix"
"/features/development/typescript.nix"
"/features/eww"
"/features/gaming.nix"
"/features/linux-desktop.nix"
@@ -20,6 +21,12 @@ in
(import ../../../home-manager/features/wallpaper.nix monitors)
];
# This config file is needed for nix shell to allow unfree programs. I'm not
# sure why this isn't a home-manager option.
home.file.".config/nixpkgs/config.nix".text = ''
{ allowUnfree = true; }
'';
home.stateVersion = "24.11";
home.username = "drew";