Compare commits

..

11 Commits

Author SHA1 Message Date
7153e2d3e3 Merge branch 'main' of orion:kiri/nixos-config 2025-12-04 18:48:31 +01:00
24b1438410 Sort todoman using priority 2025-12-04 18:45:31 +01:00
3d62cc10d3 Add host for work github 2025-12-04 18:45:24 +01:00
f92f4e8362 Add second key to gpg-agent 2025-12-04 18:45:11 +01:00
60fe1fd579 Remove home-manager syncthing 2025-12-04 18:44:56 +01:00
575d797b5c Add rustc for nixCats 2025-12-04 18:44:39 +01:00
b492aeb371 Move lazydev config and load blink.cmp on start 2025-12-04 18:44:15 +01:00
023007dc79 Fix syncthing perms 2025-12-04 18:42:28 +01:00
962aadd77b Add trash-cli 2025-12-04 18:42:22 +01:00
cb2388c3c6 Add harper and enable underline diagnostics 2025-12-04 18:42:17 +01:00
dca64dd6c2 Enable wake-on-lan for polaris 2025-12-04 18:41:59 +01:00
9 changed files with 198 additions and 169 deletions

View File

@@ -3,10 +3,22 @@
imports = [
../../modules/nixos/desktop.nix
../../modules/nixos/ssh.nix
./hardware-configuration.nix
./variables.nix
];
networking = {
interfaces = {
enp5s0 = {
wakeOnLan.enable = true;
};
};
firewall = {
allowedUDPPorts = [ 9 ];
};
};
home-manager.users."${config.var.username}" = import ./home.nix;
system.stateVersion = "24.05";

View File

@@ -89,6 +89,8 @@
cmatrix
libreoffice-qt6-fresh
trash-cli
];
};
}

View File

@@ -2,7 +2,8 @@
config,
pkgs,
...
}: {
}:
{
programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
@@ -15,6 +16,9 @@
pinentry = {
package = pkgs.pinentry-gnome3;
};
sshKeys = ["CD848796822630B280FC6DFA55F24A20040F22B5"];
sshKeys = [
"CD848796822630B280FC6DFA55F24A20040F22B5"
"B8FBDFBD7F42C444C17E086E0EE2E34FB43A7187"
];
};
}

View File

@@ -45,6 +45,7 @@ let
typescript
typescript-language-server
rustc
rust-analyzer
rustfmt
@@ -60,6 +61,8 @@ let
typstyle
ltex-ls-plus
harper
];
};

View File

@@ -171,13 +171,25 @@ require("lz.n").load({
require("luasnip.loaders.from_vscode").lazy_load()
end,
},
{
-- lazydev makes your lsp way better in your config without needing extra lsp configuration.
"lazydev.nvim",
cmd = "LazyDev",
ft = "lua",
after = function()
require("lazydev").setup({
library = {
{ words = { "nixCats" }, path = (nixCats.nixCatsPath or "") .. "/lua" },
},
})
end,
},
{
"blink.cmp",
before = function()
-- Trigger lazydev so it's ready for blink source
require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" })
end,
event = "VimEnter",
after = function()
require("blink.cmp").setup({
keymap = {

View File

@@ -1,18 +1,4 @@
require("lz.n").load({
{
{
-- lazydev makes your lsp way better in your config without needing extra lsp configuration.
"lazydev.nvim",
cmd = "LazyDev",
ft = "lua",
after = function()
require("lazydev").setup({
library = {
{ words = { "nixCats" }, path = (nixCats.nixCatsPath or "") .. "/lua" },
},
})
end,
},
{
"nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
@@ -78,7 +64,7 @@ require("lz.n").load({
-- 1. Setup Diagnostics (Visuals)
vim.diagnostic.config({
severity_sort = true,
underline = { severity = vim.diagnostic.severity.ERROR },
-- underline = { severity = vim.diagnostic.severity.ERROR },
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "",
@@ -179,7 +165,8 @@ require("lz.n").load({
},
})
vim.lsp.enable("ltex_plus")
vim.lsp.enable("harper_ls")
end,
},
},
})

View File

@@ -4,6 +4,15 @@
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"github-work" = {
hostname = "github.com";
user = "git";
identityFile = "/home/kiri/.ssh/github-work.pub";
identitiesOnly = true;
};
};
includes = [
config.sops.secrets.ssh_config_orion.path
];

View File

@@ -7,7 +7,7 @@
time_format = "%H:%M"
default_list = "personal"
default_due = 0
default_command = "list --sort due"
default_command = "list --sort priority,due"
humanize = True
'';
};

View File

@@ -52,7 +52,7 @@ in
path = syncPath;
devices = builtins.attrNames devices; # Share with all defined devices
# Ensure new files are readable by the group (chmod 770 approx)
ignorePerms = false;
ignorePerms = true;
};
};