Skip to content

Commit

Permalink
feat(hosts/timeline): ✨ docker
Browse files Browse the repository at this point in the history
  • Loading branch information
drainpixie committed Oct 12, 2024
1 parent 9f38293 commit 8137a8b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 8 additions & 1 deletion common/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@
options.desc = "Open parent directory";
}
{
action = ":ConjureRepl<CR>";
action = ":ToggleTerm direction=float size=0.5<CR>";
key = ",";
mode = "n";
options.desc = "Open terminal";
}
{
action = ":ConjureConnect<CR>";
key = "<leader>cr";
mode = "n";
options.desc = "Open Conjure REPL";
Expand All @@ -159,6 +165,7 @@
undotree.enable = true;
telescope.enable = true;
treesitter.enable = true;
toggleterm.enable = true;
web-devicons.enable = false;

nvim-autopairs.enable = true;
Expand Down
4 changes: 3 additions & 1 deletion common/neovim/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ _: {
};

formatting = {
just.enable = true;
alejandra.enable = true;
clang_format.enable = true;

Expand Down Expand Up @@ -78,7 +79,7 @@ _: {
settings = {
format_on_save = {
lspFallback = true;
timeoutMs = 500;
timeoutMs = 1500;
};

notify_on_error = true;
Expand All @@ -89,6 +90,7 @@ _: {
lua = ["stylua"];
nix = ["alejandra"];
rust = ["rustfmt"];
just = ["just"];
}
// builtins.listToAttrs (map (ft: {
# TODO: Move to Biome.
Expand Down
7 changes: 7 additions & 0 deletions hosts/timeline/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
../../common/system.nix
];

environment.systemPackages = [pkgs.docker-compose];
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};

networking.hostName = "timeline";
powerManagement.enable = true;

Expand Down Expand Up @@ -42,6 +48,7 @@
extraGroups = [
"wheel"
"audio"
"docker"
"networkmanager"
];
};
Expand Down

0 comments on commit 8137a8b

Please sign in to comment.