Skip to content

Commit

Permalink
nix: add neovim nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
FredeHoey committed Mar 12, 2024
1 parent b93efb4 commit 5df232c
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 38 deletions.
182 changes: 179 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 39 additions & 34 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,49 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nixgl.url = "github:nix-community/nixgl";
};

outputs = inputs@{ nixpkgs, home-manager, nixgl, ... }: {
nixosConfigurations = {
dt = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ ./systems/base.nix ./systems/desktop.nix ./systems/dt.nix ];
};
yoga = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules =
[ ./systems/base.nix ./systems/desktop.nix ./systems/yoga.nix ];
};
ideapad = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules =
[ ./systems/base.nix ./systems/desktop.nix ./systems/ideapad.nix ];
};
server = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [ ./systems/base.nix ./systems/server.nix ./modules/ssh.nix ];
};
};
homeConfigurations = let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
};
outputs =
inputs@{ nixpkgs, home-manager, nixgl, neovim-nightly-overlay, ... }:
let
overlays = [ neovim-nightly-overlay.overlay ];

base = [ { nixpkgs.overlays = overlays; } ./systems/base.nix ];
in {
bun = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; };
modules = [ ./users/bun.nix ];
nixosConfigurations = {
dt = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = base ++ [ ./systems/desktop.nix ./systems/dt.nix ];
};
yoga = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = base ++ [ ./systems/desktop.nix ./systems/yoga.nix ];
};
ideapad = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = base ++ [ ./systems/desktop.nix ./systems/ideapad.nix ];
};
server = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = base ++ [ ./systems/server.nix ./modules/ssh.nix ];
};
};
homeConfigurations = let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
};
in {
bun = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs; };
modules = [ ./users/bun.nix ];
};
};
};

formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixfmt;
};
formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixfmt;
};
}
1 change: 1 addition & 0 deletions systems/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
htop
openssl
python311
neovim
];

# Enable the OpenSSH daemon.
Expand Down
1 change: 0 additions & 1 deletion users/bun.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ in {
ansible
bat
fzf
neovim
nix
ripgrep
rofi
Expand Down

0 comments on commit 5df232c

Please sign in to comment.