Nixifying helix config
This commit is contained in:
parent
e43362f69a
commit
8a7fcff10d
4 changed files with 84 additions and 9 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -93,11 +93,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754225444,
|
"lastModified": 1754263839,
|
||||||
"narHash": "sha256-mv01SQtqlhBMavc1dgNjgqJw4WfZxy+w3xBgwJU3YmU=",
|
"narHash": "sha256-ck7lILfCNuunsLvExPI4Pw9OOCJksxXwozum24W8b+8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0de18bd5c6681280d7ae017fa34ffd91bdcf0557",
|
"rev": "1d7abbd5454db97e0af51416f4960b3fb64a4773",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -162,11 +162,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753939845,
|
"lastModified": 1754214453,
|
||||||
"narHash": "sha256-K2ViRJfdVGE8tpJejs8Qpvvejks1+A4GQej/lBk5y7I=",
|
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "94def634a20494ee057c76998843c015909d6311",
|
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -194,11 +194,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753939845,
|
"lastModified": 1754214453,
|
||||||
"narHash": "sha256-K2ViRJfdVGE8tpJejs8Qpvvejks1+A4GQej/lBk5y7I=",
|
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "94def634a20494ee057c76998843c015909d6311",
|
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.lyes = { ... }: {
|
home-manager.users.lyes = { ... }: {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./emacs.nix
|
./emacs.nix
|
||||||
|
./helix.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
73
users/lyes/home/editors/helix.nix
Normal file
73
users/lyes/home/editors/helix.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.helix = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
theme = "gruvbox_dark_hard";
|
||||||
|
|
||||||
|
editor = {
|
||||||
|
rulers = [ 80 ];
|
||||||
|
|
||||||
|
cursor-shape = {
|
||||||
|
insert = "bar";
|
||||||
|
normal = "block";
|
||||||
|
select = "underline";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
languages = {
|
||||||
|
language = [
|
||||||
|
{
|
||||||
|
name = "rpm-spec";
|
||||||
|
scope = "source.bash";
|
||||||
|
file-types = [ "spec" ];
|
||||||
|
comment-token = "#";
|
||||||
|
indent = { tab-width = 4; unit = " "; };
|
||||||
|
grammar = "bash";
|
||||||
|
injection-regex = "%changelog";
|
||||||
|
roots = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
# {
|
||||||
|
# name = "bash";
|
||||||
|
# file-types = [
|
||||||
|
# "sh" "bash" "zsh"
|
||||||
|
# ".bash_login" ".bash_logout" ".bash_profile"
|
||||||
|
# ".bashrc" ".profile" ".zshenv" "zshenv" ".zlogin"
|
||||||
|
# "zlogin" ".zlogout" "zlogout" ".zprofile" "zprofile"
|
||||||
|
# ".zshrc" "zshrc" ".zimrc"
|
||||||
|
# "APKBUILD" "PKGBUILD" "eclass" "ebuild" "bazelrc"
|
||||||
|
# ".bash_aliases" "Renviron" ".Renviron"
|
||||||
|
# "spec"
|
||||||
|
# ];
|
||||||
|
# indent = { tab-width = 4; unit = " "; };
|
||||||
|
# }
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "c";
|
||||||
|
indent = { tab-width = 4; unit = " "; };
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "latex";
|
||||||
|
soft-wrap.enable = true;
|
||||||
|
indent = { tab-width = 4; unit = " "; };
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "lalrpop";
|
||||||
|
scope = "source.rs";
|
||||||
|
file-types = [ "lalrpop" ];
|
||||||
|
comment-token = "//";
|
||||||
|
indent = { tab-width = 4; unit = " "; };
|
||||||
|
grammar = "rust";
|
||||||
|
roots = [];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue