refactor: modularize flake and import nixpkgs

This commit is contained in:
matt1432 2024-05-20 22:41:45 -04:00
parent 7a52fc6beb
commit 0861880a20
8 changed files with 160 additions and 138 deletions

View file

@ -23,10 +23,6 @@
../modules/nvidia.nix
];
nixpkgs = {
config.allowUnfree = true;
overlays = import ./overlays inputs;
};
boot.tmp.useTmpfs = true;
nix = {

View file

@ -1,8 +1,7 @@
{
basedpyrightPkgs,
config,
lib,
pkgs,
basedpyright,
...
}: let
inherit (config.vars) neovimIde;
@ -13,7 +12,7 @@ in
withPython3 = true;
extraPackages = [
basedpyright.legacyPackages.${pkgs.system}.basedpyright
basedpyrightPkgs.basedpyright
];
extraLuaConfig =

View file

@ -23,16 +23,10 @@
substituters = [
# Nix-community
"https://nix-community.cachix.org"
# FIXME: cache doesn't work
# Personal config cache
# "https://cache.nelim.org"
];
trustedPublicKeys = [
# Nix-community
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# Personal config cache
# "cache.nelim.org:JmFqkUdH11EA9EZOFAGVHuRYp7EbsdJDHvTQzG2pPyY="
];
};