Skip to content

Commit

Permalink
nixvim, vm docker & google-cloud-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Oct 24, 2024
1 parent ace8576 commit 9ce7584
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 5 deletions.
220 changes: 217 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@

nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";

nixvim = { url = "github:nix-community/nixvim/nixos-24.05"; inputs.nixpkgs.follows = "nixpkgs"; };
};

outputs = inputs@{ self, flake-parts, ... }:
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.ez-configs.flakeModule
Expand Down
1 change: 1 addition & 0 deletions home-configurations/peteresselius.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ in
minio = true;
task = true;
trino = true;
google-cloud = true;
};

programs.fish.shellInit = ''
Expand Down
1 change: 1 addition & 0 deletions home-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
ezModules.agenix
ezModules.terminal
ezModules.nix
ezModules.neovim
];

inherit (osConfig) context;
Expand Down
45 changes: 45 additions & 0 deletions home-modules/neovim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ inputs, ... }:

{
imports = [ inputs.nixvim.homeManagerModules.nixvim ];

programs.nixvim = {
enable = true;

vimAlias = true;

opts = {
number = true;
shiftwidth = 2;
};

plugins = {
airline.enable = true;

bufferline.enable = true;

telescope.enable = true;

treesitter.enable = true;

lsp = {
enable = true;

servers = {
nixd.enable = true;
};
};

cmp = {
enable = true;
autoEnableSources = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
colorschemes.vscode.enable = true;
};
}
7 changes: 7 additions & 0 deletions home-modules/profiles/tools/work.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in
minio = lib.mkEnableOption "Install minio packages";
task = lib.mkEnableOption "Install task tab completion";
trino = lib.mkEnableOption "Install trino packages";
google-cloud = lib.mkEnableOption "Install google cloud packages";
};

config = mkMerge [
Expand Down Expand Up @@ -72,5 +73,11 @@ in
trino-cli
];
})

(mkIf cfg.google-cloud {
home.packages = with pkgs; [
google-cloud-sdk
];
})
];
}
7 changes: 7 additions & 0 deletions nixos-configurations/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@
ezModules.sshd
ezModules.user-peteresselius
];

programs.nix-ld.enable = true;
nix.settings.extra-sandbox-paths = [ "/lib" ];
boot.binfmt.emulatedSystems = ["x86_64-linux"];
nix.settings.sandbox = "relaxed";

virtualisation.docker.enable = true;
}
Loading

0 comments on commit 9ce7584

Please sign in to comment.