Compare commits
4 Commits
cf50f8800b
...
1522c8d6a0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1522c8d6a0 | ||
|
|
f0bda1964e | ||
|
|
80d1ed1528 | ||
|
|
2d074e0b09 |
8
flake.lock
generated
8
flake.lock
generated
@@ -22,16 +22,16 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1756542300,
|
||||
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
|
||||
"lastModified": 1770136044,
|
||||
"narHash": "sha256-tlFqNG/uzz2++aAmn4v8J0vAkV3z7XngeIIB3rM3650=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
|
||||
"rev": "e576e3c9cf9bad747afcddd9e34f51d18c855b4e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixos-unstable",
|
||||
"ref": "nixos-25.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
inputs = {
|
||||
# Specify the source of Home Manager and Nixpkgs.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
[core]
|
||||
pager = delta
|
||||
|
||||
[delta]
|
||||
side-by-side = true
|
||||
|
||||
[includeIf "gitdir:~/git/work/tcs/"]
|
||||
path = tcs.config
|
||||
|
||||
[delta]
|
||||
side-by-side = true
|
||||
|
||||
13
helix/.config/helix/config.toml
Normal file
13
helix/.config/helix/config.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
theme = "github_dark"
|
||||
|
||||
[editor]
|
||||
line-number = "relative"
|
||||
mouse = false
|
||||
|
||||
[editor.cursor-shape]
|
||||
insert = "bar"
|
||||
normal = "block"
|
||||
select = "underline"
|
||||
|
||||
[editor.file-picker]
|
||||
hidden = false
|
||||
@@ -65,6 +65,7 @@
|
||||
# Dev tools
|
||||
git
|
||||
lazygit
|
||||
jujutsu
|
||||
|
||||
# Python
|
||||
python3
|
||||
@@ -123,7 +124,7 @@
|
||||
XDG_BIN_HOME = "${config.home.homeDirectory}/.local/bin";
|
||||
#This variable is overriden. It does not work
|
||||
EDITOR = "hx";
|
||||
PAGER = "bat";
|
||||
#PAGER = "bat";
|
||||
};
|
||||
home.sessionPath = [ "$XDG_BIN_HOME" ];
|
||||
|
||||
@@ -168,7 +169,9 @@
|
||||
};
|
||||
|
||||
#programs.neovim.enable = true;
|
||||
programs.neovim.defaultEditor = true;
|
||||
#programs.neovim.defaultEditor = false;
|
||||
#programs.helix.enable = true;
|
||||
#programs.helix.defaultEditor = true;
|
||||
|
||||
programs.zoxide.enable = true;
|
||||
programs.bash = {
|
||||
@@ -187,7 +190,7 @@
|
||||
xdg.configFile = let
|
||||
dotfiles = "${config.home.homeDirectory}/git/dotfiles";
|
||||
|
||||
createDotlink = name: {
|
||||
createDotLink = name: {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/${name}/.config/${name}";
|
||||
recursive = true;
|
||||
};
|
||||
@@ -196,5 +199,6 @@
|
||||
"git" = createDotLink "git";
|
||||
"niri" = createDotLink "niri";
|
||||
"jj" = createDotLink "jj";
|
||||
"helix" = createDotLink "helix";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
jujutsu
|
||||
ansible
|
||||
awscli2
|
||||
cargo-cross
|
||||
rustup
|
||||
rustc
|
||||
gcc
|
||||
python3Packages.jedi-language-server
|
||||
ruff
|
||||
vial
|
||||
chromium
|
||||
];
|
||||
|
||||
@@ -2,16 +2,19 @@
|
||||
|
||||
[user]
|
||||
name = "J. Fernando Sánchez"
|
||||
email = "f.sanchez@thechannelstore.tv"
|
||||
email = "j@sanchezrada.es"
|
||||
|
||||
[[--scope]]
|
||||
--when.repositories = ["~/git/personal/"]
|
||||
--when.repositories = ["~/git/work/tcs"]
|
||||
[--scope.user]
|
||||
email = "j@sanchezrada.es"
|
||||
name = "J. Fernando Sánchez"
|
||||
email = "f.sanchez@thechannelstore.tv"
|
||||
|
||||
|
||||
[ui]
|
||||
pager = "delta" #":builtin"
|
||||
diff-formatter=":git"
|
||||
paginate = "auto"
|
||||
|
||||
[merge-tools.delta]
|
||||
diff-args=["--side-by-side", "$left", "$right", "--width=$width"]
|
||||
diff-args=["--color-only", "--side-by-side", "$left", "$right", "--width=$width"]
|
||||
|
||||
@@ -148,7 +148,7 @@ output "DP-1" {
|
||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||
layout {
|
||||
// Set gaps around windows in logical pixels.
|
||||
gaps 5
|
||||
gaps 0
|
||||
|
||||
// When to center a column when changing focus, options are:
|
||||
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||
@@ -295,10 +295,10 @@ layout {
|
||||
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||
// layer-shell panels and regular gaps.
|
||||
struts {
|
||||
left 5
|
||||
right 5
|
||||
top 5
|
||||
bottom 5
|
||||
left 2
|
||||
right 2
|
||||
top 2
|
||||
bottom 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,13 +314,9 @@ workspace "teams" {
|
||||
open-on-output "eDP-1"
|
||||
}
|
||||
|
||||
workspace "3" {}
|
||||
workspace "4" {}
|
||||
workspace "5" {}
|
||||
workspace "6" {}
|
||||
workspace "7" {}
|
||||
workspace "8" {}
|
||||
workspace "9" {}
|
||||
workspace "notes" {
|
||||
open-on-output "eDP-1"
|
||||
}
|
||||
|
||||
// Add lines like this to spawn processes at startup.
|
||||
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||
@@ -355,7 +351,7 @@ animations {
|
||||
// off
|
||||
|
||||
// Slow down all animations by this factor. Values below 1 speed them up instead.
|
||||
slowdown 0.5
|
||||
slowdown 0.75
|
||||
}
|
||||
|
||||
// Window rules let you adjust behavior for individual windows.
|
||||
@@ -378,12 +374,14 @@ window-rule {
|
||||
// - host Firefox (app-id is "firefox")
|
||||
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||
default-column-width {}
|
||||
open-floating true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"firefox$"# title="Bitwarden"
|
||||
match app-id="firefox" title=r#".*Bitwarden.*"#
|
||||
open-floating true
|
||||
block-out-from "screen-capture"
|
||||
}
|
||||
|
||||
// Example: block out two password managers from screen capture.
|
||||
@@ -459,10 +457,15 @@ binds {
|
||||
Mod+K { focus-window-up; }
|
||||
Mod+L { focus-column-right; }
|
||||
|
||||
//Mod+Alt+H { move-window-left; }
|
||||
Mod+Alt+J { move-window-down; }
|
||||
//Mod+Alt+L { move-window-right; }
|
||||
Mod+Alt+K { move-window-up; }
|
||||
|
||||
Mod+Ctrl+H { move-column-left-or-to-monitor-left; }
|
||||
Mod+Ctrl+J { move-window-down; }
|
||||
Mod+Ctrl+L { move-column-right-or-to-monitor-right; }
|
||||
Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||
Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||
Mod+Ctrl+K { move-window-up; }
|
||||
|
||||
Mod+Home { focus-column-first; }
|
||||
Mod+End { focus-column-last; }
|
||||
@@ -479,30 +482,23 @@ binds {
|
||||
Mod+Shift+K { focus-monitor-up; }
|
||||
Mod+Shift+L { focus-monitor-right; }
|
||||
|
||||
Ctrl+Alt+H { move-workspace-to-monitor-left; }
|
||||
Ctrl+Alt+J { move-workspace-to-monitor-down; }
|
||||
Ctrl+Alt+K { move-workspace-to-monitor-up; }
|
||||
Ctrl+Alt+L { move-workspace-to-monitor-right; }
|
||||
Mod+Alt+H { move-column-to-monitor-left; }
|
||||
Mod+Alt+J { move-column-to-monitor-down; }
|
||||
Mod+Alt+K { move-column-to-monitor-up; }
|
||||
Mod+Alt+L { move-column-to-monitor-right; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||
// ...
|
||||
|
||||
// And you can also move a whole workspace to another monitor:
|
||||
Mod+Ctrl+Shift+H { move-workspace-to-monitor-left; }
|
||||
Mod+Ctrl+Shift+L { move-workspace-to-monitor-right; }
|
||||
Mod+Ctrl+Shift+J { move-workspace-to-monitor-down; }
|
||||
Mod+Ctrl+Shift+K { move-workspace-to-monitor-up; }
|
||||
Ctrl+Alt+H { move-workspace-to-monitor-left; }
|
||||
Ctrl+Alt+L { move-workspace-to-monitor-right; }
|
||||
Ctrl+Alt+J { move-workspace-to-monitor-down; }
|
||||
Ctrl+Alt+K { move-workspace-to-monitor-up; }
|
||||
// ...
|
||||
|
||||
Mod+Page_Down { focus-workspace-down; }
|
||||
Mod+Page_Up { focus-workspace-up; }
|
||||
Mod+D { focus-workspace-down; }
|
||||
Mod+U { focus-workspace-up; }
|
||||
|
||||
Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||
Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||
@@ -559,24 +555,24 @@ binds {
|
||||
// will all refer to the 3rd workspace.
|
||||
Mod+1 { focus-workspace "terminal"; }
|
||||
Mod+2 { focus-workspace "firefox"; }
|
||||
Mod+3 { focus-workspace "3"; }
|
||||
Mod+4 { focus-workspace "4"; }
|
||||
Mod+5 { focus-workspace "5"; }
|
||||
Mod+6 { focus-workspace "6"; }
|
||||
Mod+7 { focus-workspace "7"; }
|
||||
Mod+8 { focus-workspace "8"; }
|
||||
Mod+9 { focus-workspace "9"; }
|
||||
Mod+3 { focus-workspace "notes"; }
|
||||
//Mod+4 { focus-workspace 4; }
|
||||
//Mod+5 { focus-workspace "5"; }
|
||||
//Mod+6 { focus-workspace "6"; }
|
||||
//Mod+7 { focus-workspace "7"; }
|
||||
//Mod+8 { focus-workspace "8"; }
|
||||
//Mod+9 { focus-workspace "9"; }
|
||||
Mod+grave { focus-workspace "teams"; }
|
||||
Mod+0 { focus-workspace "teams"; }
|
||||
Mod+Ctrl+1 { move-column-to-workspace "terminal"; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace "firefox"; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace "3"; }
|
||||
Mod+Ctrl+4 { move-column-to-workspace "4"; }
|
||||
Mod+Ctrl+5 { move-column-to-workspace "5"; }
|
||||
Mod+Ctrl+6 { move-column-to-workspace "6"; }
|
||||
Mod+Ctrl+7 { move-column-to-workspace "7"; }
|
||||
Mod+Ctrl+8 { move-column-to-workspace "8"; }
|
||||
Mod+Ctrl+9 { move-column-to-workspace "9"; }
|
||||
Mod+Ctrl+3 { move-column-to-workspace "notes"; }
|
||||
//Mod+Ctrl+4 { move-column-to-workspace "4"; }
|
||||
//Mod+Ctrl+5 { move-column-to-workspace "5"; }
|
||||
//Mod+Ctrl+6 { move-column-to-workspace "6"; }
|
||||
//Mod+Ctrl+7 { move-column-to-workspace "7"; }
|
||||
//Mod+Ctrl+8 { move-column-to-workspace "8"; }
|
||||
//Mod+Ctrl+9 { move-column-to-workspace "9"; }
|
||||
Mod+Ctrl+0 { move-column-to-workspace "teams"; }
|
||||
|
||||
// Alternatively, there are commands to move just a single window:
|
||||
@@ -600,6 +596,7 @@ binds {
|
||||
Mod+Shift+R { switch-preset-window-height; }
|
||||
Mod+Ctrl+R { reset-window-height; }
|
||||
Mod+F { maximize-column; }
|
||||
Mod+G { maximize-window-to-edges; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
|
||||
// Expand the focused column to space not taken up by other fully visible columns.
|
||||
|
||||
Reference in New Issue
Block a user