Added vimExtraPlugins
This commit is contained in:
parent
71f8e1e11e
commit
bb1bab2f2f
@ -6,16 +6,21 @@
|
||||
url = "github:rycee/home-manager/release-22.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
vim-extra-plugins.url = "github:m15a/nixpkgs-vim-extra-plugins";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, nixos-unstable, home-manager}:
|
||||
outputs =
|
||||
inputs@{ self, nixpkgs, nixos-unstable, home-manager, vim-extra-plugins }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
overlays = [ (final: prev: { inherit unstable; }) ];
|
||||
overlays = [
|
||||
(final: prev: { inherit unstable; })
|
||||
vim-extra-plugins.overlays.default
|
||||
];
|
||||
};
|
||||
|
||||
unstable = import nixos-unstable {
|
||||
|
26
lib/host.nix
26
lib/host.nix
@ -7,7 +7,11 @@
|
||||
|
||||
mkRole = role: import (../roles + "/${role}.nix");
|
||||
|
||||
users_mod= (map (u: user.mkUser {name = u.user; roles = u.roles; }) users);
|
||||
users_mod = (map (u:
|
||||
user.mkUser {
|
||||
name = u.user;
|
||||
roles = u.roles;
|
||||
}) users);
|
||||
roles_mod = (map (r: mkRole r) roles);
|
||||
add_imports = imports;
|
||||
in nixpkgs.lib.nixosSystem {
|
||||
@ -16,23 +20,19 @@
|
||||
modules = [
|
||||
{
|
||||
imports = users_mod ++ roles_mod ++ add_imports;
|
||||
nixpkgs = {
|
||||
pkgs = pkgs;
|
||||
};
|
||||
nixpkgs = { inherit pkgs; };
|
||||
|
||||
nix.nixPath = [
|
||||
"nixpkgs=${nixpkgs}"
|
||||
"unstable=${nixos-unstable}"
|
||||
];
|
||||
nix.nixPath = [ "nixpkgs=${nixpkgs}" "unstable=${nixos-unstable}" ];
|
||||
nix.registry.nixpkgs.flake = nixpkgs;
|
||||
nix.registry.unstable.flake = nixos-unstable;
|
||||
|
||||
users.users.root = {
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
users.users.root = { shell = pkgs.zsh; };
|
||||
|
||||
home-manager.users.root.imports = [ ../roles/home/common.nix ];
|
||||
home-manager.extraSpecialArgs.unstable = unstable;
|
||||
home-manager = {
|
||||
users.root.imports = [ ../roles/home/common.nix ];
|
||||
extraSpecialArgs.unstable = unstable;
|
||||
useGlobalPkgs = true;
|
||||
};
|
||||
}
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
|
Loading…
Reference in New Issue
Block a user