split neovim config

This commit is contained in:
iofq 2023-05-14 13:06:56 -05:00
parent 8fb6118bcd
commit 5df8317a4a
19 changed files with 239 additions and 195 deletions

31
home/common.nix Executable file
View file

@ -0,0 +1,31 @@
{ inputs, pkgs, ... }:
{
imports = ( import ../modules/programs );
programs.home-manager.enable = true;
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
auto-optimise-store = true;
};
package = pkgs.nixFlakes;
registry.nixpkgs.flake = inputs.nixpkgs;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
home = {
stateVersion = "22.11";
packages = with pkgs; [
pulseaudio
pulsemixer
alsa-utils
appimage-run
wireguard-tools
spleen
];
};
xdg.enable = true;
fonts.fontconfig.enable = true;
systemd.user.startServices = "sd-switch";
}

25
home/default.nix Normal file
View file

@ -0,0 +1,25 @@
{ inputs, ...}:
{
"e" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
overlays = [
(final: prev: {
inherit (inputs.nvim.packages.${final.system}) iofqvim;
})
];
};
extraSpecialArgs = {
inherit inputs;
host = {
hostName = "t14";
username = "e";
};
};
modules = [
./t14/home.nix
];
};
}

19
home/t14/home.nix Executable file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
imports = [
../../modules/wayland
../../modules/librewolf
../common.nix
];
home = {
username = "e";
homeDirectory = "/home/e";
packages = with pkgs; [
discord
signal-desktop
runelite
framesh
iofqvim
];
};
}