Skip to content

Commit a50d042

Browse files
committed
update NixOS, switch to real neovim nightly overlay via flake
1 parent 44a8417 commit a50d042

File tree

5 files changed

+96
-36
lines changed

5 files changed

+96
-36
lines changed

flake.lock

Lines changed: 91 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
1919

2020
# Other packages
21-
nix-pgquarrel.url = "github:mitchellh/nix-pgquarrel";
22-
nix-pgquarrel.inputs.nixpkgs.follows = "nixpkgs";
21+
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
2322
};
2423

2524
outputs = { self, nixpkgs, home-manager, nixpkgs-unstable, ... }@inputs: let
2625
mkVM = import ./lib/mkvm.nix;
2726

2827
# Overlays is the list of overlays we want to apply from flake inputs.
29-
overlays = [ inputs.nix-pgquarrel.overlay ];
28+
overlays = [
29+
inputs.neovim-nightly-overlay.overlay
30+
];
3031
in {
3132
nixosConfigurations.vm-aarch64 = mkVM "vm-aarch64" rec {
3233
inherit overlays nixpkgs home-manager;

lib/mkvm.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nixpkgs.lib.nixosSystem rec {
99
# Apply our overlays. Overlays are keyed by system type so we have
1010
# to go through and apply our system type. We do this first so
1111
# the overlays are available globally.
12-
{ nixpkgs.overlays = map (x: x.${system}) overlays; }
12+
{ nixpkgs.overlays = overlays; }
1313

1414
../hardware/${name}.nix
1515
../machines/${name}.nix

machines/vm-shared.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,6 @@
9090
rxvt_unicode
9191
xclip
9292

93-
# I actually don't need this for any particular reason, especially
94-
# globally, but I keep this around as an example of how to use a
95-
# flake with an overlay. haha.
96-
pgquarrel
97-
9893
# This is needed for the vmware user tools clipboard to work.
9994
# You can test if you don't need this by deleting this and seeing
10095
# if the clipboard sill works.

users/mitchellh/nixos.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,5 @@
1717

1818
nixpkgs.overlays = import ../../lib/overlays.nix ++ [
1919
(import ./vim.nix)
20-
(import (builtins.fetchTarball {
21-
url = https://github.com/nix-community/neovim-nightly-overlay/archive/1dd99a6c91b4a6909e66d0ee69b3f31995f38851.tar.gz;
22-
sha256 = "1z8gx1cqd18s8zgqksjbyinwgcbndg2r6wv59c4qs24rbgcsvny9";
23-
}))
2420
];
2521
}

0 commit comments

Comments
 (0)