Use my own nixvim config

This commit is contained in:
MFlossmann 2024-07-03 02:27:30 +02:00
parent 48387d08e3
commit dac6fbb252
10 changed files with 48 additions and 15 deletions

View file

@ -44,8 +44,6 @@
formatter = helperLib.forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); formatter = helperLib.forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
overlays = import ./overlays {inherit inputs;};
nixosConfigurations = { nixosConfigurations = {
remus = helperLib.mkSystem ./hosts/remus/configuration.nix; remus = helperLib.mkSystem ./hosts/remus/configuration.nix;
}; };

View file

@ -32,6 +32,8 @@ in rec {
}: {nixpkgs.overlays = [overlay-stable];}) }: {nixpkgs.overlays = [overlay-stable];})
config config
outputs.nixosModules.default outputs.nixosModules.default
(import ../overlays)
]; ];
}; };
@ -49,6 +51,8 @@ in rec {
}: {nixpkgs.overlays = [overlay-stable];}) }: {nixpkgs.overlays = [overlay-stable];})
config config
outputs.homeManagerModules.default outputs.homeManagerModules.default
(import ../overlays)
]; ];
}; };

View file

@ -41,8 +41,8 @@
programs.zsh.enable = true; programs.zsh.enable = true;
programs.neovim.enable = true; programs.neovim.enable = false;
programs.neovim.defaultEditor = true; programs.neovim.defaultEditor = false;
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.

View file

@ -1,12 +1,14 @@
{ {
config, config,
pkgs, pkgs,
inputs,
... ...
}: { }: {
# home.username = "prunebutt"; # home.username = "prunebutt";
# home.homeDirectory = "/home/prunebutt"; # home.homeDirectory = "/home/prunebutt";
home = let home = let
user = "prunebutt"; user = "prunebutt";
_inputs = inputs;
in { in {
username = "${user}"; username = "${user}";
homeDirectory = "/home/${user}"; homeDirectory = "/home/${user}";
@ -17,7 +19,7 @@
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.
packages = with pkgs; [ packages = [
# # It is sometimes useful to fine-tune packages, for example, by applying # # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the # # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
@ -32,7 +34,8 @@
# '') # '')
## GNOME ## GNOME
gnomeExtensions.gsconnect
inputs.nixvim-config.packages.${pkgs.system}.default
]; ];
}; };

View file

@ -50,6 +50,6 @@
EDITOR = "nvim"; EDITOR = "nvim";
}; };
programs.neovim.enable = true; programs.neovim.enable = false;
programs.neovim.defaultEditor = true; programs.neovim.defaultEditor = false;
} }

View file

@ -2,6 +2,7 @@
pkgs, pkgs,
system, system,
inputs, inputs,
outputs,
config, config,
lib, lib,
helperLib, helperLib,

View file

@ -70,7 +70,13 @@ in {
config = { config = {
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
nixpkgs.config.allowUnfree = lib.mkDefault true; nixpkgs = {
config.allowUnfree = lib.mkDefault true;
# overlays = [
# outputs.overlays.additions
# outputs.overlays.modifications
# ];
};
myNixOS = { myNixOS = {
bundles.core.enable = lib.mkDefault true; bundles.core.enable = lib.mkDefault true;

4
overlays/additions.nix Normal file
View file

@ -0,0 +1,4 @@
# This one brings our custom packages from the `pkgs` directory
_:{
nixpkgs.overlays = final: prev: import ../pkgs final.pkgs;
}

View file

@ -1,12 +1,14 @@
{inputs, ...}: { {inputs, ...}: {
# This one brings our custom packages from the `pkgs` directory nixpkgs.overlays = [
additions = final: _prev: import ../pkgs final.pkgs; (final: prev: import ../pkgs final.pkgs)
# Any custom modifications # Any custom modifications
# https://nixos.wiki/wiki/Overlays # https://nixos.wiki/wiki/Overlays
modifications = final: prev: { (final: prev: {
nixvim = builtins.trace "foobarzelidumm" inputs.nixvim-config.packages.${prev.system}.default;
})
# example = prev.example.overrideAttrs (oldAttrs: rec { # example = prev.example.overrideAttrs (oldAttrs: rec {
# ... # ...
# }); # });
}; ];
} }

View file

@ -0,0 +1,15 @@
# Any custom modifications
# https://nixos.wiki/wiki/Overlays
{inputs, ...}: {
nixpkgs.overlays = [
(final: prev: {
nixvim = inputs.nixvim-config.packages.${prev.system}.default;
testitest = builtins.trace "foobarbaz" "testitest";
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
})
];
}