Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Dec 7, 2024
1 parent 4a5d822 commit 387dd36
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions darwin-configurations/Fox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
ezModules.tiling-wm
ezModules.homebrew-packages
ezModules.user-peteresselius
ezModules.linux-builder
];

nixpkgs.hostPlatform = "aarch64-darwin";
Expand Down
1 change: 0 additions & 1 deletion darwin-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{
imports = [
ezModules.context
ezModules.linux-builder
ezModules.nix
ezModules.security
../overlays.nix
Expand Down
6 changes: 5 additions & 1 deletion home-configurations/peteresselius.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ in
(mkIf (config.context == "home") { })

(mkIf (config.context == "work") {
programs.mise = {
enable = true;
enableFishIntegration = true;
};
profiles.tools = {
asdf = true;
# asdf = true;
k8s = true;
minio = true;
task = true;
Expand Down
9 changes: 8 additions & 1 deletion home-modules/fish-shell.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{ pkgs, ... }:

{
programs = {
fish.enable = true;
fish = {
enable = true;
interactiveShellInit = ''
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
'';
};

starship = {
enable = true;
Expand Down
18 changes: 6 additions & 12 deletions home-modules/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ in
nixd.enable = true;
metals = {
enable = true;
filetypes = [ "sc" "scala" ];
filetypes = [ "sc" "scala" "java" ];
};
dockerls.enable = true;
tilt_ls.enable = true;
protols = { enable = true; package = null; };
pylsp.enable = true;
gopls.enable = true;
clangd.enable = true;
regols = {
enable = true;
filetypes = ["rego"];
};
};
};

Expand All @@ -83,16 +87,6 @@ in
{ name = "path"; }
{ name = "buffer"; }
];
settings = {
mapping = {
"<C-i>" = ''cmp.mapping(cmp.mapping.complete(), { "i", "c" })'';
"<C-e>" = "cmp.mapping({ i = cmp.mapping.abort(), c = cmp.mapping.close(), })";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<C-Space>" = "cmp.mapping.complete()";
};
};
};
};

Expand All @@ -113,7 +107,7 @@ in
extraConfigLua = ''
local nvim_metals_group = vim.api.nvim_create_augroup("nvim-metals", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "scala", "sbt", "java" },
pattern = { "scala", "sbt" },
callback = function()
require("metals").initialize_or_attach({})
end,
Expand Down
3 changes: 2 additions & 1 deletion nixos-modules/nix.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ inputs, ... }:
{ inputs, pkgs, ... }:

{
nix = {
Expand All @@ -17,6 +17,7 @@

nixPath = [
"nixpkgs=${inputs.nixpkgs}"
"nixpkgs-unstable=${inputs.nixpkgs-unstable}"
];
};
}

0 comments on commit 387dd36

Please sign in to comment.