Skip to content

Commit c7a8ff1

Browse files
committed
refactor: replace lazyvim with nixvim
1 parent c83e38c commit c7a8ff1

File tree

10 files changed

+331
-76
lines changed

10 files changed

+331
-76
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARCH := $(shell uname -m)
66
WSL_DISTRO := $(strip $(WSL_DISTRO_NAME))
77

88
fmt:
9-
nixpkgs-fmt $(NIX_FILES)
9+
nixfmt $(NIX_FILES)
1010

1111
update:
1212
nix flake update

flake.lock

Lines changed: 215 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,24 @@
77

88
# Nixpkgs unstable
99
# pull request: https://github.com/NixOS/nixpkgs/pull/311047
10-
nixpkgs-unstable.url = "github:nixos/nixpkgs/817c3eccc985907e3cf8137232aa9a9715f695c8";
10+
nixpkgs-unstable.url =
11+
"github:nixos/nixpkgs/817c3eccc985907e3cf8137232aa9a9715f695c8";
1112

1213
# Home manager
1314
home-manager.url = "github:nix-community/home-manager/release-24.05";
1415
home-manager.inputs.nixpkgs.follows = "nixpkgs";
1516

1617
# NixOS WSL
1718
nixos-wsl.url = "github:nix-community/nixos-wsl/2405.5.4";
19+
20+
# nixvim
21+
nixvim.url = "github:nix-community/nixvim/nixos-24.05";
22+
nixvim.inputs.nixpkgs.follows = "nixpkgs";
1823
};
1924

20-
outputs =
21-
{ self
22-
, nixpkgs
23-
, home-manager
24-
, ...
25-
} @ inputs:
26-
let
27-
inherit (self) outputs;
28-
in
29-
{
25+
outputs = { self, nixpkgs, home-manager, ... }@inputs:
26+
let inherit (self) outputs;
27+
in {
3028
# Your custom packages and modifications, exported as overlays
3129
overlays = import ./overlays { inherit inputs; };
3230

@@ -47,17 +45,20 @@
4745
# Available through 'home-manager --flake .#your-username@your-hostname'
4846
homeConfigurations = {
4947
"nixos@all" = home-manager.lib.homeManagerConfiguration {
50-
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
48+
pkgs =
49+
nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
5150
extraSpecialArgs = { inherit inputs outputs; };
5251
modules = [ ./home-manager/linux ];
5352
};
5453
"henry@darwin-legacy" = home-manager.lib.homeManagerConfiguration {
55-
pkgs = nixpkgs.legacyPackages.x86_64-darwin; # Home-manager requires 'pkgs' instance
54+
pkgs =
55+
nixpkgs.legacyPackages.x86_64-darwin; # Home-manager requires 'pkgs' instance
5656
extraSpecialArgs = { inherit inputs outputs; };
5757
modules = [ ./home-manager/darwin ];
5858
};
5959
"henry@darwin" = home-manager.lib.homeManagerConfiguration {
60-
pkgs = nixpkgs.legacyPackages.aarch64-darwin; # Home-manager requires 'pkgs' instance
60+
pkgs =
61+
nixpkgs.legacyPackages.aarch64-darwin; # Home-manager requires 'pkgs' instance
6162
extraSpecialArgs = { inherit inputs outputs; };
6263
modules = [ ./home-manager/darwin ];
6364
};

0 commit comments

Comments
 (0)