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 = [ imports = [
../../modules/nixos/desktop.nix ../../modules/nixos/desktop.nix
../../modules/nixos/ssh.nix
./hardware-configuration.nix ./hardware-configuration.nix
./variables.nix ./variables.nix
]; ];
networking = {
interfaces = {
enp5s0 = {
wakeOnLan.enable = true;
};
};
firewall = {
allowedUDPPorts = [ 9 ];
};
};
home-manager.users."${config.var.username}" = import ./home.nix; home-manager.users."${config.var.username}" = import ./home.nix;
system.stateVersion = "24.05"; system.stateVersion = "24.05";

View File

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

View File

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

View File

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

View File

@@ -171,13 +171,25 @@ require("lz.n").load({
require("luasnip.loaders.from_vscode").lazy_load() require("luasnip.loaders.from_vscode").lazy_load()
end, 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", "blink.cmp",
before = function() before = function()
-- Trigger lazydev so it's ready for blink source -- Trigger lazydev so it's ready for blink source
require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" }) require("lz.n").trigger_load({ "lazydev.nvim", "luasnip" })
end, end,
event = "VimEnter",
after = function() after = function()
require("blink.cmp").setup({ require("blink.cmp").setup({
keymap = { keymap = {

View File

@@ -1,18 +1,4 @@
require("lz.n").load({ 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", "nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
@@ -78,7 +64,7 @@ require("lz.n").load({
-- 1. Setup Diagnostics (Visuals) -- 1. Setup Diagnostics (Visuals)
vim.diagnostic.config({ vim.diagnostic.config({
severity_sort = true, severity_sort = true,
underline = { severity = vim.diagnostic.severity.ERROR }, -- underline = { severity = vim.diagnostic.severity.ERROR },
signs = { signs = {
text = { text = {
[vim.diagnostic.severity.ERROR] = "", [vim.diagnostic.severity.ERROR] = "",
@@ -179,7 +165,8 @@ require("lz.n").load({
}, },
}) })
vim.lsp.enable("ltex_plus") vim.lsp.enable("ltex_plus")
vim.lsp.enable("harper_ls")
end, end,
}, },
},
}) })

View File

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

View File

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

View File

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