Add Helix config
This commit is contained in:
parent
5f53886265
commit
3a6699a656
3 changed files with 939 additions and 55 deletions
18
.helix/languages.toml
Normal file
18
.helix/languages.toml
Normal file
|
@ -0,0 +1,18 @@
|
|||
[[language]]
|
||||
auto-format = true
|
||||
name = "nix"
|
||||
formatter = { command = "nixfmt" }
|
||||
|
||||
[[language]]
|
||||
name = "toml"
|
||||
formatter = { command = "taplo", args = ["format", "-"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "yaml"
|
||||
formatter = { command = 'prettier', args = ["--parser", "yaml"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "markdown"
|
||||
formatter = { command = 'prettier', args = ["--parser", "markdown"] }
|
29
flake.nix
29
flake.nix
|
@ -21,7 +21,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, nur, nixgl, lix-module, sops-nix, ... }:
|
||||
outputs =
|
||||
{
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nur,
|
||||
nixgl,
|
||||
lix-module,
|
||||
sops-nix,
|
||||
...
|
||||
}:
|
||||
let
|
||||
system = "aarch64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
|
@ -31,7 +40,8 @@
|
|||
nixgl.overlays.default
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
sudoer777 = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
@ -42,9 +52,12 @@
|
|||
./home.nix
|
||||
lix-module.nixosModules.default
|
||||
sops-nix.homeManagerModules.sops
|
||||
({ ... }: {
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
nixpkgs.overlays = [ nur.overlays.default ];
|
||||
})
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -54,6 +67,14 @@
|
|||
pkgs.sops
|
||||
pkgs.just
|
||||
pkgs.forgejo-cli
|
||||
pkgs.nil
|
||||
pkgs.nixfmt-rfc-style
|
||||
pkgs.taplo
|
||||
pkgs.marksman
|
||||
pkgs.helix
|
||||
pkgs.uutils-coreutils
|
||||
pkgs.prettier
|
||||
pkgs.yaml-language-server
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
937
home.nix
937
home.nix
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue