47 lines
980 B
Nix
47 lines
980 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: {
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"vscode" # TODO: remove this
|
|
"obsidian"
|
|
"steam"
|
|
"steam-unwrapped"
|
|
# nvidia related (i have to)
|
|
"nvidia-x11"
|
|
"cuda_cudart"
|
|
"libcublas"
|
|
"cuda_cccl"
|
|
"cuda_nvcc"
|
|
"nvidia-settings"
|
|
"cuda-merged"
|
|
];
|
|
|
|
# enable nix flakes
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
nix.nixPath = [
|
|
"nixpkgs=${inputs.nixpkgs}"
|
|
"nixos-config=${inputs.self}"
|
|
];
|
|
|
|
nix.channel.enable = false;
|
|
|
|
nix.settings.trusted-users = ["root" "osbm"];
|
|
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "01:37";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
|
|
# nix.nixPath = ["nixpkgs=${pkgs.path}"];
|
|
|
|
# disable the database error TODO add nix-index search
|
|
programs.command-not-found.enable = false;
|
|
|
|
system.configurationRevision = inputs.self.rev or "dirty";
|
|
}
|