refactor flake.nix

This commit is contained in:
Adithya 2023-09-24 03:39:32 +05:30
parent 3d14c0bb59
commit 8f03cbf250
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -40,7 +40,7 @@
nixvim,
} @ inputs: let
secrets = import ./secrets.nix;
config = {
nixpkgs-config = {
allowUnfree = true;
};
in
@ -50,7 +50,7 @@
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
inherit config;
config = nixpkgs-config;
overlays = [(import ./packages)];
};
specialArgs = inputs // {inherit secrets;};
@ -86,7 +86,7 @@
system = "aarch64-linux";
pkgs = import nixpkgs {
inherit system;
inherit config;
config = nixpkgs-config;
};
specialArgs = inputs // {inherit secrets;};
modules = [
@ -102,7 +102,7 @@
system = "aarch64-linux";
pkgs = import nixpkgs {
inherit system;
inherit config;
config = nixpkgs-config;
};
specialArgs = inputs // {inherit secrets;};
modules = [