6 Commits
xiao ... master

Author SHA1 Message Date
J. Fernando Sánchez
94fcdb812c Update home packages 2025-08-31 20:09:39 +02:00
J. Fernando Sánchez
84f9bf297f Create flake.nix 2025-08-31 19:17:09 +02:00
J. Fernando Sánchez
fa7041ff8b added home-manager 2024-01-23 16:25:59 +01:00
J. Fernando Sánchez
f68b89be0f add ansible and sshpass 2023-11-13 10:28:59 +01:00
J. Fernando Sánchez
1c449f436a add home-manager 2023-11-10 16:16:24 +01:00
J. Fernando Sánchez
b0933f7e42 add firefox no tab instructions 2023-06-30 12:02:06 +02:00
16 changed files with 655 additions and 5 deletions

View File

@@ -0,0 +1,83 @@
[window]
[window.padding]
x = 15
y = 15
[font]
[font.normal]
family = "IosevkaTerm"
style = "Regular"
[shell]
program = "tmux"
[[key_bindings]]
key = "Return"
mods = "Control|Shift"
action = "SpawnNewInstance"
[[key_bindings]]
key = "V"
mods = "Control|Shift"
action = "Paste"
[[key_bindings]]
key = "C"
mods = "Control|Shift"
action = "Copy"
[[key_bindings]]
key = "Insert"
mods = "Shift"
action = "PasteSelection"
[[key_bindings]]
key = "Key0"
mods = "Control"
action = "ResetFontSize"
[[key_bindings]]
key = "Equals"
mods = "Control"
action = "IncreaseFontSize"
[[key_bindings]]
key = "Plus"
mods = "Control"
action = "IncreaseFontSize"
[[key_bindings]]
key = "Minus"
mods = "Control"
action = "DecreaseFontSize"
[[key_bindings]]
key = "Minus"
mods = "Control"
action = "DecreaseFontSize"
[colors]
[colors.primary]
background = "0x1d1f21"
foreground = "0xc5c8c6"
[colors.cursor]
text = "0x1d1f21"
cursor = "0xc5c8c6"
[colors.normal]
black = "0x1d1f21"
red = "0xcc6666"
green = "0xb5bd68"
yellow = "0xf0c674"
blue = "0x81a2be"
magenta = "0xb294bb"
cyan = "0x8abeb7"
white = "0xc5c8c6"
[colors.bright]
black = "0x969896"
red = "0xde935f"
green = "0x282a2e"
yellow = "0x373b41"
blue = "0xb4b7b4"
magenta = "0xe0e0e0"
cyan = "0xa3685a"
white = "0xffffff"

View File

@@ -97,9 +97,11 @@ font:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
# family: MesloLGS NF
# family: Hack
family: DejaVu Sans Mono
# family: Hack Nerd Font
# family: DejaVuSansM Nerd Font
# family: FiraCode Nerd Font
# family: IosevkaTerm Nerd Font
family: CaskaydiaCove NFM
# The `style` can be specified to pick a specific face.
style: Regular
@@ -316,8 +318,8 @@ font:
# - (macOS) /bin/bash --login
# - (Linux/BSD) user login shell
# - (Windows) powershell
#shell:
# program: /bin/bash
shell:
program: tmux
# args:
# - --login

View File

@@ -0,0 +1,144 @@
[Desktop Entry]
Version=1.0
#NoDisplay=true
Name=Firefox Web Browser (nixGL)
GenericName=Web Browser
GenericName[ar]=متصفح ويب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
GenericName[cs]=Webový prohlížeč
GenericName[da]=Webbrowser
GenericName[el]=Περιηγητής διαδικτύου
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fa]=مرورگر اینترنتی
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gl]=Navegador Web
GenericName[he]=דפדפן אינטרנט
GenericName[hr]=Web preglednik
GenericName[hu]=Webböngésző
GenericName[it]=Browser web
GenericName[ja]=ウェブ・ブラウザ
GenericName[ko]=웹 브라우저
GenericName[ku]=Geroka torê
GenericName[lt]=Interneto naršyklė
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[nn]=Nettlesar
GenericName[no]=Nettleser
GenericName[pl]=Przeglądarka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador Web
GenericName[ro]=Navigator Internet
GenericName[ru]=Веб-браузер
GenericName[sk]=Internetový prehliadač
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbläsare
GenericName[tr]=Web Tarayıcı
GenericName[ug]=توركۆرگۈ
GenericName[uk]=Веб-браузер
GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Keywords=Internet;WWW;Browser;Web;Explorer
Keywords[ar]=انترنت;إنترنت;متصفح;ويب;وب
Keywords[ast]=Internet;WWW;Restolador;Web;Esplorador
Keywords[ca]=Internet;WWW;Navegador;Web;Explorador;Explorer
Keywords[cs]=Internet;WWW;Prohlížeč;Web;Explorer
Keywords[da]=Internet;Internettet;WWW;Browser;Browse;Web;Surf;Nettet
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
Keywords[el]=Internet;WWW;Browser;Web;Explorer;Διαδίκτυο;Περιηγητής;Firefox;Φιρεφοχ;Ιντερνετ
Keywords[es]=Explorador;Internet;WWW
Keywords[fi]=Internet;WWW;Browser;Web;Explorer;selain;Internet-selain;internetselain;verkkoselain;netti;surffaa
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
Keywords[he]=דפדפן;אינטרנט;רשת;אתרים;אתר;פיירפוקס;מוזילה;
Keywords[hr]=Internet;WWW;preglednik;Web
Keywords[hu]=Internet;WWW;Böngésző;Web;Háló;Net;Explorer
Keywords[it]=Internet;WWW;Browser;Web;Navigatore
Keywords[is]=Internet;WWW;Vafri;Vefur;Netvafri;Flakk
Keywords[ja]=Internet;WWW;Web;インターネット;ブラウザ;ウェブ;エクスプローラ
Keywords[nb]=Internett;WWW;Nettleser;Explorer;Web;Browser;Nettside
Keywords[nl]=Internet;WWW;Browser;Web;Explorer;Verkenner;Website;Surfen;Online
Keywords[pt]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[pt_BR]=Internet;WWW;Browser;Web;Explorador;Navegador
Keywords[ru]=Internet;WWW;Browser;Web;Explorer;интернет;браузер;веб;файрфокс;огнелис
Keywords[sk]=Internet;WWW;Prehliadač;Web;Explorer
Keywords[sl]=Internet;WWW;Browser;Web;Explorer;Brskalnik;Splet
Keywords[tr]=İnternet;WWW;Tarayıcı;Web;Gezgin;Web sitesi;Site;sörf;çevrimiçi;tara
Keywords[uk]=Internet;WWW;Browser;Web;Explorer;Інтернет;мережа;переглядач;оглядач;браузер;веб;файрфокс;вогнелис;перегляд
Keywords[vi]=Internet;WWW;Browser;Web;Explorer;Trình duyệt;Trang web
Keywords[zh_CN]=Internet;WWW;Browser;Web;Explorer;网页;浏览;上网;火狐;Firefox;ff;互联网;网站;
Keywords[zh_TW]=Internet;WWW;Browser;Web;Explorer;網際網路;網路;瀏覽器;上網;網頁;火狐
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;video/webm;application/x-xpinstall;
StartupNotify=true
StartupWMClass=firefox
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=Open a New Window
Name[ar]=افتح نافذة جديدة
Name[ast]=Abrir una ventana nueva
Name[bn]=Abrir una ventana nueva
Name[ca]=Obre una finestra nova
Name[cs]=Otevřít nové okno
Name[da]=Åbn et nyt vindue
Name[de]=Ein neues Fenster öffnen
Name[el]=Νέο παράθυρο
Name[es]=Abrir una ventana nueva
Name[fi]=Avaa uusi ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre
Name[gl]=Abrir unha nova xanela
Name[he]=פתיחת חלון חדש
Name[hr]=Otvori novi prozor
Name[hu]=Új ablak nyitása
Name[it]=Apri una nuova finestra
Name[ja]=新しいウィンドウを開く
Name[ko]=새 창 열기
Name[ku]=Paceyeke nû veke
Name[lt]=Atverti naują langą
Name[nb]=Åpne et nytt vindu
Name[nl]=Nieuw venster openen
Name[pt]=Abrir nova janela
Name[pt_BR]=Abrir nova janela
Name[ro]=Deschide o fereastră nouă
Name[ru]=Новое окно
Name[sk]=Otvoriť nové okno
Name[sl]=Odpri novo okno
Name[sv]=Öppna ett nytt fönster
Name[tr]=Yeni pencere aç
Name[ug]=يېڭى كۆزنەك ئېچىش
Name[uk]=Відкрити нове вікно
Name[vi]=Mở cửa sổ mới
Name[zh_CN]=新建窗口
Name[zh_TW]=開啟新視窗
Exec=firefox -new-window
[Desktop Action new-private-window]
Name=Open a New Private Window
Name[ar]=افتح نافذة جديدة للتصفح الخاص
Name[ca]=Obre una finestra nova en mode d'incògnit
Name[cs]=Otevřít nové anonymní okno
Name[de]=Ein neues privates Fenster öffnen
Name[el]=Νέο ιδιωτικό παράθυρο
Name[es]=Abrir una ventana privada nueva
Name[fi]=Avaa uusi yksityinen ikkuna
Name[fr]=Ouvrir une nouvelle fenêtre de navigation privée
Name[he]=פתיחת חלון גלישה פרטית חדש
Name[hu]=Új privát ablak nyitása
Name[it]=Apri una nuova finestra anonima
Name[nb]=Åpne et nytt privat vindu
Name[ru]=Новое приватное окно
Name[sl]=Odpri novo okno zasebnega brskanja
Name[sv]=Öppna ett nytt privat fönster
Name[tr]=Yeni gizli pencere aç
Name[uk]=Відкрити нове вікно у потайливому режимі
Name[zh_TW]=開啟新隱私瀏覽視窗
Exec=nixGL firefox -private-window

3
firefox/README.md Normal file
View File

@@ -0,0 +1,3 @@
toolkit.legacyUserProfileCustomizations.stylesheets to true
cp <profile>/chrome/userChrome.css

10
firefox/userChrome.css Normal file
View File

@@ -0,0 +1,10 @@
/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}
#titlebar {
visibility: collapse;
}
#sidebar-header {
visibility: collapse !important;
}

View File

@@ -0,0 +1,3 @@
set -U fish_greeting
set -g -x NIX_PATH "/home/j/.nix-defexpr/channels/:/nix/var/nix/profiles/per-user/root/channels"
starship init fish | source

48
flake.lock generated Normal file
View File

@@ -0,0 +1,48 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1756579987,
"narHash": "sha256-duCce8zGsaMsrqqOmLOsuaV1PVIw/vXWnKuLKZClsGg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "99a69bdf8a3c6bf038c4121e9c4b6e99706a187a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1756542300,
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

46
flake.nix Normal file
View File

@@ -0,0 +1,46 @@
{
description = "Home Manager configuration of j";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
# TCS config
homeConfigurations."j@lenny" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home-manager/common.nix
./home-manager/lenny.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
# Home
homeConfigurations."j" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home-manager/common.nix
];
};
};
}

162
home-manager/common.nix Normal file
View File

@@ -0,0 +1,162 @@
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "j";
home.homeDirectory = "/home/j";
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "25.05"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
# Desktop
pavucontrol
wofi
waybar
mako # Notification daemon
hyprlock # Lock
hypridle # Run lock on idle
pkgs.nerd-fonts.fira-code
pkgs.nerd-fonts.monoid
wezterm
# Editors
emacs
neovim
helix
# Utils
jq
bat # Replacement for less
eza # Better ld
zoxide # better cd
yazi # File manager
ripgrep # Better search
fzf # Fuzzy file finder
zenith # System monitor
# Shells
fish
grc # Colorizer
fishPlugins.grc
starship
# Dev tools
git
lazygit
# Python
uv
#uutils-coreutils
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
# # environment:
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. These will be explicitly sourced when using a
# shell provided by Home Manager. If you don't want to manage your shell
# through Home Manager then you have to manually source 'hm-session-vars.sh'
# located at either
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/j/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
# EDITOR = "emacs";
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.eza = {
enableFishIntegration = true;
icons = "auto";
git = true;
extraOptions = [
"--color=always"
"--tree"
"--level=1"
"--group-directories=first"
"--dereference"
];
};
programs.fish = {
enable = true;
interactiveShellInit = ''set fish_greeting '';
plugins = [
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
];
};
programs.starship = {
enable = true;
settings = {
add_newline = false;
};
};
programs.zoxide.enable = true;
programs.bash = {
enable = true;
initExtra = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
''; # Launch fish on startup
};
fonts.fontconfig.enable = true;
}

15
home-manager/lenny.nix Normal file
View File

@@ -0,0 +1,15 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
jujutsu
];
programs.git = {
enable = true;
userName = "Fernando Sánchez";
userEmail = "f.sanchez@thechannelstore.tv";
extraConfig = {
init.defaultBranch = "main";
};
};
}

81
home-manager/old.nix Normal file
View File

@@ -0,0 +1,81 @@
{ config, pkgs, nixgl, ... }:
let nixgl = import <nixgl> {};
in
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "j";
home.homeDirectory = "/home/j";
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "23.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.packages = [
pkgs.htop
pkgs.zoom-us
pkgs.fortune
pkgs.tmux
pkgs.git
pkgs.git-lfs
pkgs.hugo
pkgs.fish
pkgs.fd
pkgs.helix
pkgs.starship
pkgs.ripgrep
pkgs.eza
pkgs.ansible
pkgs.ranger
pkgs.sshpass
pkgs.jq
pkgs.bat
pkgs.davfs2
pkgs.pandoc
pkgs.rustup
#pkgs.texlive
# pkgs.texlive.combine {
# inherit (texlive) xcolor
# }
pkgs.wl-clipboard
nixgl.auto.nixGLDefault
#(pkgs.python311.withPackages (p: with p; [
#jupyterlab
#matplotlib
#pandas
#openpyxl
#]))
pkgs.alacritty
pkgs.wezterm
pkgs.kitty
pkgs.zellij
(pkgs.nerdfonts.override { fonts = [ "Iosevka" "IosevkaTerm" "Hack" "CascadiaCode" "FiraCode" "DejaVuSansMono" ]; })
];
fonts.fontconfig.enable = true;
programs.neovim = {
enable = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
auto-pairs
fzf-vim
lightline-vim
];
};
services.owncloud-client.enable = true;
}

13
home-manager/personal.nix Normal file
View File

@@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [ ];
programs.git = {
enable = true;
userName = "J. Fernando Sánchez";
userEmail = "balkian@gmail.com";
extraConfig = {
init.defaultBranch = "main";
};
};
}

View File

@@ -0,0 +1,8 @@
protocol file
mime image/*
action launch --type=overlay kitten icat --hold ${FILE_PATH}
protocol file
ext log
action launch --title ${FILE} --type=os-window tail -f ${FILE_PATH}
action change_font_size current -2

View File

@@ -0,0 +1,11 @@
F:/home/j
f:/home/j
m:/home/j/Downloads
p:/home/j/Doctorado/Papers
s:/home/j/Doctorado/Papers/SocialContext
d:/home/j/Downloads
D:/home/j/Doctorado
o:/home/j/Downloads
g:/home/j/git/balkian
G:/home/j/GSI
j:/home/j/Downloads

View File

@@ -0,0 +1,5 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = false

16
wezterm/.wezterm.lua Normal file
View File

@@ -0,0 +1,16 @@
local wezterm = require 'wezterm'
local config = {}
config.font = wezterm.font 'Iosevka Nerd Font'
config.show_tab_index_in_tab_bar = true
-- wezterm.on('update-right-status', function(window, pane)
-- window:set_left_status 'left'
-- window:set_right_status 'right'
-- end)
config.use_fancy_tab_bar = true
config.show_tabs_in_tab_bar = false
config.show_new_tab_button_in_tab_bar = false
return config