aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-12-31 10:50:26 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-12-31 10:50:26 +0200
commit87376d215cc0950f2626feb29e0ceb7aa01cff14 (patch)
tree31f9151ce3eee4ab18c7bce2c59bec6c73a3cdb7 /home
parent773c14a39473a8d4531007eb4fe9aafe025444ef (diff)
downloadnixos-87376d215cc0950f2626feb29e0ceb7aa01cff14.tar.zst
Update configuration
Diffstat (limited to 'home')
-rw-r--r--home/default.nix31
-rw-r--r--home/goose.nix6
-rw-r--r--home/nom.nix43
3 files changed, 42 insertions, 38 deletions
diff --git a/home/default.nix b/home/default.nix
index 7446be3..598cfee 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -115,10 +115,10 @@ in
settings = {
buffer = {
autofocus = true;
+ history = true;
images = true;
- styling = true;
scripting = true;
- history = true;
+ styling = true;
};
input = {
vi-numeric-prefix = true;
@@ -278,11 +278,11 @@ in
themes = {
nord = {
background = "#2e3440";
+ cursor-color = "#d8dee9";
+ cursor-text = "#2e3440";
foreground = "#d8dee9";
selection-background = "#3f4758";
selection-foreground = "#d8dee9";
- cursor-color = "#d8dee9";
- cursor-text = "#2e3440";
palette = [
"0=#3b4252"
"1=#bf616a"
@@ -308,10 +308,10 @@ in
enableDefaultConfig = false;
enable = true;
matchBlocks."*" = {
- serverAliveInterval = 1;
compression = true;
controlMaster = "auto";
controlPersist = "10m";
+ serverAliveInterval = 1;
};
};
};
@@ -368,26 +368,26 @@ in
};
username = "${vars.user}";
sessionVariables = {
- CC = "clang";
BROWSER = "${pkgs.firefox}/bin/firefox";
CARGO_REGISTRIES_RELESOFT_CREDENTIAL_PROVIDER = "cargo:token";
CARGO_REGISTRIES_RELESOFT_INDEX = "sparse+https://git.relesoft.io/api/packages/relesoft/cargo/";
CARGO_REGISTRIES_RELESOFT_IO_PROTOCOL = "sparse";
CARGO_REGISTRIES_RELESOFT_TOKEN = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.relesoft_cargo_token.path})";
+ CC = "clang";
CURSOR_SIZE = "16";
DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
GDK_SCALE = "1";
MOZ_USE_XINPUT2 = "1";
NIXOS_OZONE_WL = "1";
+ OPENAI_API_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.openai_auth_token.path})";
PAGER = "${pkgs.nvimpager}/bin/nvimpager";
PISTOL_CHROMA_FORMATTER = "terminal256";
PISTOL_CHROMA_STYLE = "monokai";
- VISUAL = "${pkgs.neovim}/bin/nvim";
- OPENAI_API_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.openai_auth_token.path})";
SHIORI_PASSWORD = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.shiori_password.path})";
- UNSPLASH_ACCESS_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.unsplash_access_key.path})";
TERMCMD = "${pkgs.ghostty}/bin/ghostty";
+ UNSPLASH_ACCESS_KEY = "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.unsplash_access_key.path})";
+ VISUAL = "${pkgs.neovim}/bin/nvim";
};
pointerCursor = {
@@ -405,7 +405,6 @@ in
clipse # clipboard management
impala # iwd terminal ui
lux # youtube-downloader
- unstable.nom # rss reader
rmpc # tui for mpd
rtorrent # torrent
systemctl-tui
@@ -466,7 +465,7 @@ in
inxi # system innformation
jq # commandline json parser
kramdown-asciidoc # command to convert markdown to asciidoc
- minio-client
+ minio-client # minio command line
moor # less replacement
ntfy-sh # notifications
nvimpager # use neovim as pager
@@ -537,12 +536,12 @@ in
};
desktopEntries = {
nvim = {
- name = "nvim";
- genericName = "Editor";
- exec = ''${pkgs.neovim}/bin/nvim'';
- terminal = true;
categories = [ ];
comment = "A text editor";
+ exec = ''${pkgs.neovim}/bin/nvim'';
+ genericName = "Editor";
+ name = "nvim";
+ terminal = true;
};
};
@@ -576,9 +575,9 @@ in
{
filechooser = {
cmd = "yazi-wrapper.sh";
+ default_dir = "/home/petri/Downloads";
open_mode = "suggested";
save_mode = "last";
- default_dir = "/home/petri/Downloads";
};
};
diff --git a/home/goose.nix b/home/goose.nix
index 0e23453..9e4ec44 100644
--- a/home/goose.nix
+++ b/home/goose.nix
@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
xdg.configFile."goose/config.yaml".source = (pkgs.formats.yaml { }).generate "goose-config" {
- OPENAI_BASE_PATH = "v1/chat/completions";
+ keyring = false;
extensions = {
developer = {
available_tools = [ ];
@@ -66,9 +66,11 @@
type = "builtin";
};
};
+ GOOSE_DISABLE_KEYRING = "true";
GOOSE_MODE = "auto";
- GOOSE_PROVIDER = "openai";
GOOSE_MODEL = "gpt-4.1-mini";
+ GOOSE_PROVIDER = "openai";
+ OPENAI_BASE_PATH = "v1/chat/completions";
OPENAI_HOST = "https://api.openai.com";
};
}
diff --git a/home/nom.nix b/home/nom.nix
index aa03b35..be793b3 100644
--- a/home/nom.nix
+++ b/home/nom.nix
@@ -6,24 +6,27 @@
}:
{
- home.activation.writeNomConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
- mkdir -p $HOME/.config/nom
- cat > $HOME/.config/nom/config.yml <<EOF
- autoread: true
- ordering: desc
- showread: false
- openers:
- - regex: "youtube"
- cmd: "mpv %s"
- - regex: ".*"
- cmd: "${pkgs.firefox}/bin/firefox %s"
- refreshinterval: 5
- filtering:
- defaultIncludeFeedName: true
- backends:
- miniflux:
- host: https://flux.tammi.cc
- api_key: $( ${pkgs.coreutils}/bin/cat ${config.age.secrets.miniflux_api_key.path} )
- EOF
- '';
+ home = {
+ packages = [ pkgs.nom ];
+ activation.writeNomConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
+ mkdir -p $HOME/.config/nom
+ cat > $HOME/.config/nom/config.yml <<EOF
+ autoread: true
+ ordering: desc
+ showread: false
+ openers:
+ - regex: "youtube"
+ cmd: "mpv %s"
+ - regex: ".*"
+ cmd: "${pkgs.firefox}/bin/firefox %s"
+ refreshinterval: 5
+ filtering:
+ defaultIncludeFeedName: true
+ backends:
+ miniflux:
+ host: https://flux.tammi.cc
+ api_key: $( ${pkgs.coreutils}/bin/cat ${config.age.secrets.miniflux_api_key.path} )
+ EOF
+ '';
+ };
}