Fixed errors with flake. and added kagi search engine

This commit is contained in:
Jurn Wubben 2025-05-06 15:06:41 +02:00
parent eb6a366283
commit db83b04eec
9 changed files with 80 additions and 60 deletions

66
flake.lock generated
View file

@ -376,11 +376,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745858959, "lastModified": 1746413188,
"narHash": "sha256-B1FQwPCFLL3cbHc2nxT3/UI1uprHp2h1EA6M2JVe0oQ=", "narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d0d9d0a1454d5a0200693570618084d80a8b336c", "rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -419,11 +419,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745439012, "lastModified": 1746369725,
"narHash": "sha256-TwbdiH28QK7Da2JQTqFHdb+UCJq6QbF2mtf+RxHVzEA=", "narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d31710fb2cd536b1966fee2af74e99a0816a61a8", "rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -434,11 +434,11 @@
}, },
"mnw": { "mnw": {
"locked": { "locked": {
"lastModified": 1745705214, "lastModified": 1746338991,
"narHash": "sha256-XGfaHbFI4vvDuaoVO3IFYZKezXIO8rhUaMCGcjY71Ac=", "narHash": "sha256-GbyoHjf14LOxZQc+0NFblI4xf/uwGrYo3W8lwE4HcwI=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "mnw", "repo": "mnw",
"rev": "c1f4587db4c53dcefa432c46c7a899a116d8e924", "rev": "c65407ee9387ef75985dad3e30f58c822c766ec1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -499,11 +499,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1745757380, "lastModified": 1746495601,
"narHash": "sha256-MfA53mffVwGd1uZlFmUHwrGFSdggXfGzTuOH1DP+vY4=", "narHash": "sha256-t13mwTToJdJhbaW4oVZBMXc6kbwXk9u/qy9RlBKjn3Y=",
"owner": "kaylorben", "owner": "kaylorben",
"repo": "nixcord", "repo": "nixcord",
"rev": "ab84b94df09d4ec856a89083cc8f629db5a2d8d9", "rev": "07170d72636e7259e1309e5b494ac6d5c5a1ba81",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -560,11 +560,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1745788595, "lastModified": 1746481231,
"narHash": "sha256-XTtT/LzX+mUqRsnuHtzygWfG9HXnOVBQC2vMfpT5AYc=", "narHash": "sha256-U3VKPi5D2oLBFzaMI0jJLJp8J64ZLjz+EwodUS//QWc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "66d3e172fa7bc69432a540ffd04825d0b358b04d", "rev": "c6aca34d2ca2ce9e20b722f54e684cda64b275c2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -576,11 +576,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1745526057, "lastModified": 1746328495,
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", "narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b", "rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -621,11 +621,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1745234285, "lastModified": 1745930157,
"narHash": "sha256-GfpyMzxwkfgRVN0cTGQSkTC0OHhEkv3Jf6Tcjm//qZ0=", "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c11863f1e964833214b767f4a369c6e6a7aba141", "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -645,11 +645,11 @@
"treefmt-nix": "treefmt-nix_2" "treefmt-nix": "treefmt-nix_2"
}, },
"locked": { "locked": {
"lastModified": 1745459908, "lastModified": 1746056780,
"narHash": "sha256-bWqgohVf/py9EW3bLS/dYbenD2p9N2/Qsw1+CJk1S04=", "narHash": "sha256-/emueQGaoT4vu0QjU9LDOG5roxRSfdY0K2KkxuzazcM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "dbc4ba3233b2bf951521177bf0ee0a7679959035", "rev": "d476cd0972dd6242d76374fcc277e6735715c167",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -670,11 +670,11 @@
"systems": "systems_4" "systems": "systems_4"
}, },
"locked": { "locked": {
"lastModified": 1745819184, "lastModified": 1746522393,
"narHash": "sha256-+v+MOVFYDQCJdP67gLrIdrLGKqBUp37KGhvcqd9ZFqA=", "narHash": "sha256-gZTKsH5440Yu4R5lPpjkeyyMl8mX+T4iiNKlZL3izBk=",
"owner": "notashelf", "owner": "notashelf",
"repo": "nvf", "repo": "nvf",
"rev": "efa859381f60132db976d2501bfdb4e6f8d5a8c5", "rev": "f07468e13a994b04ec3b9cd41777429942cdc8b1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -726,11 +726,11 @@
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_4"
}, },
"locked": { "locked": {
"lastModified": 1745864947, "lastModified": 1746534525,
"narHash": "sha256-0Hx9YIOMD4rsn2pWF+Z8St4v2JEtuxCGd9LVrcbC7Zk=", "narHash": "sha256-cRBGbtxOEoy1M3umByFdySS+KL9RJfmbJZo/08zUYNc=",
"owner": "jsw08", "owner": "jsw08",
"repo": "somcli", "repo": "somcli",
"rev": "5c6f8fe0fddef66073cb2d49148602973c2edb6e", "rev": "37648a230219a9f0f99a917cf7cff2944d9a90bd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -761,11 +761,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1745618823, "lastModified": 1746519367,
"narHash": "sha256-WGKSI0+CY3Ep2YnRASmBRU8oMIvTW4ngFyjA0dVcKgQ=", "narHash": "sha256-bdCCX84HW4CecAgokOi0BgRBR3JSPeGFlusWAGIh3fE=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "11ceb2fde1901dc227421bbbef2d0800339f5126", "rev": "a2b80b900647f28658a2c9456d9a10ab4aa3b250",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,5 +1,12 @@
{osConfig, ...}: { {
osConfig,
inputs,
...
}: {
imports = [ imports = [
inputs.stylix.homeManagerModules.stylix
inputs.nixcord.homeModules.nixcord
./wayland ./wayland
./shell ./shell
./style ./style

View file

@ -3,7 +3,9 @@
pkgs, pkgs,
lib, lib,
... ...
}: { }: let
profileName = "jsw.nixos-default";
in {
programs.firefox = { programs.firefox = {
enable = osConfig.niksos.desktop; enable = osConfig.niksos.desktop;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped { package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
@ -59,18 +61,37 @@
}; };
}; };
profiles."jsw.nixos-default" = { profiles.${profileName} = {
id = 0; id = 0;
name = "nixos-default"; name = "nixos-default";
isDefault = true; isDefault = true;
search = { search = {
force = true; force = true;
default = "DuckDuckGo"; default = "kagi";
order = [ order = [
"DuckDuckGo" "kagi"
"Google" "ddg"
]; ];
engines = {
"kagi" = {
icon = "https://kagi.com/favicon.ico";
updateInterval = 24 * 60 * 60 * 1000;
definedAliases = ["@k"];
urls = [
{
template = "https://kagi.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
};
};
}; };
settings = { settings = {
@ -91,4 +112,6 @@
type = "stdio"; type = "stdio";
allowed_extensions = ["ff2mpv@yossarian.net"]; allowed_extensions = ["ff2mpv@yossarian.net"];
}; };
stylix.targets.firefox.profileNames = [profileName];
} }

View file

@ -44,7 +44,6 @@
}; };
options.shiftwidth = 2; options.shiftwidth = 2;
languages = { languages = {
enableLSP = true; # Thses options enable the things automatically for every language.
enableFormat = true; #You can also manually overwrite each language. enableFormat = true; #You can also manually overwrite each language.
enableTreesitter = true; enableTreesitter = true;
@ -60,6 +59,7 @@
python.enable = true; python.enable = true;
}; };
lsp = { lsp = {
enable = true;
formatOnSave = true; formatOnSave = true;
lspkind.enable = true; # Autocomplete icons lspkind.enable = true; # Autocomplete icons
lightbulb.enable = true; # Lightbulb icon when lsp is available lightbulb.enable = true; # Lightbulb icon when lsp is available

View file

@ -1,10 +1,4 @@
{ {osConfig, ...}: {
inputs,
osConfig,
...
}: {
imports = [inputs.nixcord.homeManagerModules.nixcord];
programs.nixcord = { programs.nixcord = {
enable = osConfig.niksos.neovim; enable = osConfig.niksos.neovim;

View file

@ -1,14 +1,9 @@
{ {
osConfig, osConfig,
inputs,
pkgs, pkgs,
lib, lib,
... ...
}: { }: {
imports = [
inputs.stylix.homeManagerModules.stylix
];
stylix = { stylix = {
enable = osConfig.niksos.desktop; enable = osConfig.niksos.desktop;
autoEnable = lib.mkDefault true; autoEnable = lib.mkDefault true;
@ -32,11 +27,8 @@
light = "Tela-dark"; light = "Tela-dark";
}; };
targets = { targets.nvf.enable = false; # I'd like to be able to read my code, thank you.
gnome-text-editor.enable = false; # Creates an overlay in home-manager land which isn't allowed with globalPkgs. overlays.enable = false; # Should be set automatically but it isn't for some reason...
nvf.enable = false; # I'd like to be able to read my code, thank you.
};
# base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml"; # base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-frappe.yaml";
}; };
} }

View file

@ -1,6 +1,6 @@
{osConfig, ...}: { {osConfig, ...}: {
services.mako = { services.mako = {
enable = osConfig.niksos.desktop; enable = osConfig.niksos.desktop;
defaultTimeout = 5000; settings.defaultTimeout = 5000;
}; };
} }

View file

@ -33,6 +33,7 @@ in {
}; };
services = { services = {
usbmuxd.enable = true;
joycond.enable = true; joycond.enable = true;
udev.extraRules = '' udev.extraRules = ''
# Ethernet expansion card support # Ethernet expansion card support

View file

@ -1,4 +1,4 @@
{ {config, ...}: {
age.secrets = { age.secrets = {
transferSh = { transferSh = {
file = ./transfer-sh.age; file = ./transfer-sh.age;
@ -6,7 +6,10 @@
}; };
dcbot = { dcbot = {
file = ./dcbot.age; file = ./dcbot.age;
owner = "dcbot"; owner =
if config.niksos.server
then "dcbot" # "dcbot" doesn't exist on e.g laptop.
else "root";
}; };
password.file = ./password.age; password.file = ./password.age;
}; };