Use my own nixvim config
This commit is contained in:
parent
48387d08e3
commit
dac6fbb252
10 changed files with 48 additions and 15 deletions
|
|
@ -44,8 +44,6 @@
|
|||
|
||||
formatter = helperLib.forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
|
||||
overlays = import ./overlays {inherit inputs;};
|
||||
|
||||
nixosConfigurations = {
|
||||
remus = helperLib.mkSystem ./hosts/remus/configuration.nix;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -32,6 +32,8 @@ in rec {
|
|||
}: {nixpkgs.overlays = [overlay-stable];})
|
||||
config
|
||||
outputs.nixosModules.default
|
||||
|
||||
(import ../overlays)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -49,6 +51,8 @@ in rec {
|
|||
}: {nixpkgs.overlays = [overlay-stable];})
|
||||
config
|
||||
outputs.homeManagerModules.default
|
||||
|
||||
(import ../overlays)
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@
|
|||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
programs.neovim.enable = true;
|
||||
programs.neovim.defaultEditor = true;
|
||||
programs.neovim.enable = false;
|
||||
programs.neovim.defaultEditor = false;
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
# home.username = "prunebutt";
|
||||
# home.homeDirectory = "/home/prunebutt";
|
||||
home = let
|
||||
user = "prunebutt";
|
||||
_inputs = inputs;
|
||||
in {
|
||||
username = "${user}";
|
||||
homeDirectory = "/home/${user}";
|
||||
|
|
@ -17,7 +19,7 @@
|
|||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
packages = with pkgs; [
|
||||
packages = [
|
||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||
# # 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
|
||||
|
|
@ -32,7 +34,8 @@
|
|||
# '')
|
||||
|
||||
## GNOME
|
||||
gnomeExtensions.gsconnect
|
||||
|
||||
inputs.nixvim-config.packages.${pkgs.system}.default
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,6 @@
|
|||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
programs.neovim.enable = true;
|
||||
programs.neovim.defaultEditor = true;
|
||||
programs.neovim.enable = false;
|
||||
programs.neovim.defaultEditor = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
pkgs,
|
||||
system,
|
||||
inputs,
|
||||
outputs,
|
||||
config,
|
||||
lib,
|
||||
helperLib,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,13 @@ in {
|
|||
config = {
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
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 = {
|
||||
bundles.core.enable = lib.mkDefault true;
|
||||
|
|
|
|||
4
overlays/additions.nix
Normal file
4
overlays/additions.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# This one brings our custom packages from the `pkgs` directory
|
||||
_:{
|
||||
nixpkgs.overlays = final: prev: import ../pkgs final.pkgs;
|
||||
}
|
||||
|
|
@ -1,12 +1,14 @@
|
|||
{inputs, ...}: {
|
||||
# This one brings our custom packages from the `pkgs` directory
|
||||
additions = final: _prev: import ../pkgs final.pkgs;
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: import ../pkgs final.pkgs)
|
||||
|
||||
# Any custom modifications
|
||||
# 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 {
|
||||
# ...
|
||||
# });
|
||||
};
|
||||
];
|
||||
}
|
||||
|
|
|
|||
15
overlays/modifications.nix
Normal file
15
overlays/modifications.nix
Normal 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 {
|
||||
# ...
|
||||
# });
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue