mew
This commit is contained in:
parent
dcf9f050e6
commit
044061840e
6 changed files with 65 additions and 51 deletions
102
flake.nix
102
flake.nix
|
@ -8,57 +8,65 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs @ { self
|
||||
, nixpkgs
|
||||
, nixpkgs-unstable
|
||||
, home-manager
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
in
|
||||
{
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
colmena = {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
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;
|
||||
};
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
home-manager,
|
||||
...
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
in {
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
|
||||
colmena = {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
overlays = [];
|
||||
};
|
||||
};
|
||||
nixosConfigurations.test = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/test-vm/configuration.nix
|
||||
|
||||
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;
|
||||
modules = [
|
||||
./hosts/test-vm/configuration.nix
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
enable = true;
|
||||
banner = "nyanya :3";
|
||||
logLevel = "VERBOSE";
|
||||
extraConfig = ''
|
||||
StreamLocalBindUnlink yes
|
||||
'';
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
{
|
||||
plugin = catppuccin-nvim;
|
||||
config = "colorscheme catppuccin";
|
||||
config = "colorscheme catppuccin-mocha";
|
||||
}
|
||||
|
||||
{
|
||||
|
|
|
@ -37,6 +37,9 @@ map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", { desc = "Escape and clear hlsea
|
|||
-- 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
|
||||
map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" })
|
||||
|
||||
|
@ -89,6 +92,6 @@ map("n", "<leader>be",
|
|||
|
||||
map({"n", "v"}, "<leader>cf",
|
||||
function()
|
||||
require("conform").format()
|
||||
require("conform").format({ async = true, lsp_fallback = true, range = range })
|
||||
end, { desc = "Format Code" }
|
||||
)
|
||||
|
|
|
@ -8,5 +8,5 @@ require("conform").setup({
|
|||
["*"] = { "codespell" },
|
||||
},
|
||||
log_level = vim.log.levels.ERROR,
|
||||
notify_on_error = true,
|
||||
notify_on_error = true,
|
||||
})
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
bat
|
||||
lsd
|
||||
gnupg
|
||||
kitty
|
||||
tmux
|
||||
colmena
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
|
Loading…
Add table
Reference in a new issue