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"] }
|
35
flake.nix
35
flake.nix
|
@ -15,13 +15,22 @@
|
|||
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.1.tar.gz";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
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,20 +40,24 @@
|
|||
nixgl.overlays.default
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
homeConfigurations = {
|
||||
sudoer777 = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
extraSpecialArgs = {
|
||||
inherit nixgl;
|
||||
};
|
||||
modules = [
|
||||
./home.nix
|
||||
lix-module.nixosModules.default
|
||||
sops-nix.homeManagerModules.sops
|
||||
({ ... }: {
|
||||
nixpkgs.overlays = [ nur.overlays.default ];
|
||||
})
|
||||
(
|
||||
{ ... }:
|
||||
{
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
941
home.nix
941
home.nix
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue