This commit is contained in:
CherryKitten 2024-03-24 19:02:25 +01:00
parent dcf9f050e6
commit 044061840e
Signed by: sammy
GPG key ID: 98D8F75FB0658276
6 changed files with 65 additions and 51 deletions

102
flake.nix
View file

@ -8,57 +8,65 @@
}; };
}; };
outputs = outputs = inputs @ {
inputs @ { self self,
, nixpkgs nixpkgs,
, nixpkgs-unstable nixpkgs-unstable,
, home-manager home-manager,
, ... ...
}: }: let
let system = "x86_64-linux";
system = "x86_64-linux"; in {
in formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
{ colmena = {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; meta = {
colmena = { nixpkgs = import nixpkgs {
meta = { system = "x86_64-linux";
nixpkgs = import nixpkgs { overlays = [];
system = "x86_64-linux";
overlays = [ ];
};
};
bengal = { name, nodes, pkgs, ... }: {
imports = [
./hosts/${name}/configuration.nix
./modules/common
(import "${home-manager}/nixos")
];
deployment = {
targetUser = "sammy";
allowLocalDeployment = true;
};
};
maine-coon = { name, nodes, pkgs, ... }: {
imports = [
./hosts/${name}/configuration.nix
./modules/common
(import "${home-manager}/nixos")
];
deployment = {
targetHost = "maine-coon";
allowLocalDeployment = true;
};
}; };
}; };
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
inherit system; bengal = {
modules = [ name,
./hosts/test-vm/configuration.nix nodes,
pkgs,
...
}: {
imports = [
./hosts/${name}/configuration.nix
./modules/common
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
]; ];
deployment = {
targetUser = "sammy";
allowLocalDeployment = true;
};
};
maine-coon = {
name,
nodes,
pkgs,
...
}: {
imports = [
./hosts/${name}/configuration.nix
./modules/common
(import "${home-manager}/nixos")
];
deployment = {
targetHost = "maine-coon";
allowLocalDeployment = true;
};
}; };
}; };
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./hosts/test-vm/configuration.nix
(import "${home-manager}/nixos")
];
};
};
} }

View file

@ -5,6 +5,9 @@
enable = true; enable = true;
banner = "nyanya :3"; banner = "nyanya :3";
logLevel = "VERBOSE"; logLevel = "VERBOSE";
extraConfig = ''
StreamLocalBindUnlink yes
'';
settings = { settings = {
PermitRootLogin = "no"; PermitRootLogin = "no";
PasswordAuthentication = false; PasswordAuthentication = false;

View file

@ -43,7 +43,7 @@
{ {
plugin = catppuccin-nvim; plugin = catppuccin-nvim;
config = "colorscheme catppuccin"; config = "colorscheme catppuccin-mocha";
} }
{ {

View file

@ -37,6 +37,9 @@ map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", { desc = "Escape and clear hlsea
-- save file -- save file
map({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" }) map({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })
-- quit all
map("n", "<leader>qq", "<cmd>qa<cr>", { desc = "Quit all" })
--keywordprg --keywordprg
map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" }) map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" })
@ -89,6 +92,6 @@ map("n", "<leader>be",
map({"n", "v"}, "<leader>cf", map({"n", "v"}, "<leader>cf",
function() function()
require("conform").format() require("conform").format({ async = true, lsp_fallback = true, range = range })
end, { desc = "Format Code" } end, { desc = "Format Code" }
) )

View file

@ -8,5 +8,5 @@ require("conform").setup({
["*"] = { "codespell" }, ["*"] = { "codespell" },
}, },
log_level = vim.log.levels.ERROR, log_level = vim.log.levels.ERROR,
notify_on_error = true, notify_on_error = true,
}) })

View file

@ -12,8 +12,8 @@
bat bat
lsd lsd
gnupg gnupg
kitty
tmux tmux
colmena
]; ];
programs = { programs = {