diff --git a/darwin-configurations/Fox.nix b/darwin-configurations/Fox.nix index 134a04d..a89c0aa 100644 --- a/darwin-configurations/Fox.nix +++ b/darwin-configurations/Fox.nix @@ -5,6 +5,7 @@ ezModules.tiling-wm ezModules.homebrew-packages ezModules.user-peteresselius + ezModules.linux-builder ]; nixpkgs.hostPlatform = "aarch64-darwin"; diff --git a/darwin-modules/default.nix b/darwin-modules/default.nix index 623933c..02a8cb9 100644 --- a/darwin-modules/default.nix +++ b/darwin-modules/default.nix @@ -3,7 +3,6 @@ { imports = [ ezModules.context - ezModules.linux-builder ezModules.nix ezModules.security ../overlays.nix diff --git a/home-configurations/peteresselius.nix b/home-configurations/peteresselius.nix index 5fdccad..40ea649 100644 --- a/home-configurations/peteresselius.nix +++ b/home-configurations/peteresselius.nix @@ -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; diff --git a/home-modules/fish-shell.nix b/home-modules/fish-shell.nix index 2e897e2..4fd21f3 100644 --- a/home-modules/fish-shell.nix +++ b/home-modules/fish-shell.nix @@ -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; diff --git a/home-modules/neovim.nix b/home-modules/neovim.nix index 041cebd..c815e9b 100755 --- a/home-modules/neovim.nix +++ b/home-modules/neovim.nix @@ -58,7 +58,7 @@ in nixd.enable = true; metals = { enable = true; - filetypes = [ "sc" "scala" ]; + filetypes = [ "sc" "scala" "java" ]; }; dockerls.enable = true; tilt_ls.enable = true; @@ -66,6 +66,10 @@ in pylsp.enable = true; gopls.enable = true; clangd.enable = true; + regols = { + enable = true; + filetypes = ["rego"]; + }; }; }; @@ -83,16 +87,6 @@ in { name = "path"; } { name = "buffer"; } ]; - settings = { - mapping = { - "" = ''cmp.mapping(cmp.mapping.complete(), { "i", "c" })''; - "" = "cmp.mapping({ i = cmp.mapping.abort(), c = cmp.mapping.close(), })"; - "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; - "" = "cmp.mapping.confirm({ select = true })"; - "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; - "" = "cmp.mapping.complete()"; - }; - }; }; }; @@ -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, diff --git a/nixos-modules/nix.nix b/nixos-modules/nix.nix index 215e696..ab98109 100644 --- a/nixos-modules/nix.nix +++ b/nixos-modules/nix.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ inputs, pkgs, ... }: { nix = { @@ -17,6 +17,7 @@ nixPath = [ "nixpkgs=${inputs.nixpkgs}" + "nixpkgs-unstable=${inputs.nixpkgs-unstable}" ]; }; }