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