Skip to content

Commit

Permalink
convert to dev flake
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiskae committed Sep 9, 2023
1 parent e6c3166 commit e3b0146
Show file tree
Hide file tree
Showing 7 changed files with 165 additions and 217 deletions.
14 changes: 0 additions & 14 deletions default.nix

This file was deleted.

94 changes: 94 additions & 0 deletions dev/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions dev/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
description = "nvidia.nix dev flake";

inputs = {
flake.url = "path:../";

nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";

treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, flake-utils, ... }: {};

/*
outputs = {
self,
nixpkgs,
flake-utils,
alejandra,
...
}:
flake-utils.lib.simpleFlake
{
inherit self nixpkgs;
name = "nvidiaPackages";
config.allowUnfree = true;
overlay = self: super: {
nvidiaPackages = self.callPackage ./nvidia-driver {};
};
shell = {pkgs}:
with pkgs;
mkShell {
packages = [
nil
bintools
patchelf
file
nix-index
jq
tree
(python3.withPackages (pkgs: [
pkgs.flake8
pkgs.black
pkgs.more-itertools
pkgs.pyparsing
]))
];
};
systems = [
#"i686-linux"
"x86_64-linux"
"aarch64-linux"
];
}
// {
formatter.x86_64-linux = alejandra.packages.x86_64-linux.default;
};
*/
}
138 changes: 1 addition & 137 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 2 additions & 61 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,64 +1,5 @@
{
description = "A very basic flake";
description = "nvidia.nix flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};

alejandra = {
url = "github:kamadorueda/alejandra/3.0.0";
inputs = {
nixpkgs.follows = "nixpkgs";
flakeCompat.follows = "flake-compat";
};
};
};

outputs = {
self,
nixpkgs,
flake-utils,
alejandra,
...
}:
flake-utils.lib.simpleFlake
{
inherit self nixpkgs;
name = "nvidiaPackages";
config.allowUnfree = true;
overlay = self: super: {
nvidiaPackages = self.callPackage ./nvidia-driver {};
};
shell = {pkgs}:
with pkgs;
mkShell {
packages = [
nil
bintools
patchelf
file
nix-index
jq
tree
(python3.withPackages (pkgs: [
pkgs.flake8
pkgs.black
pkgs.more-itertools
pkgs.pyparsing
]))
];
};
systems = [
#"i686-linux"
"x86_64-linux"
"aarch64-linux"
];
}
// {
formatter.x86_64-linux = alejandra.packages.x86_64-linux.default;
};
outputs = { self }: {};
}
Loading

0 comments on commit e3b0146

Please sign in to comment.