lean
This commit is contained in:
parent
a80eeb2a16
commit
aa6bbc2b48
1 changed files with 52 additions and 53 deletions
|
|
@ -7,66 +7,65 @@
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.osbmModules.nixSettings.enable {
|
config = lib.mkIf config.osbmModules.nixSettings.enable {
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfreePredicate =
|
nixpkgs = {
|
||||||
pkg:
|
config = {
|
||||||
builtins.elem (lib.getName pkg) [
|
allowUnfreePredicate = pkg:
|
||||||
"vscode"
|
builtins.elem (lib.getName pkg) [
|
||||||
"discord"
|
"vscode"
|
||||||
"obsidian"
|
"discord"
|
||||||
"steam"
|
"obsidian"
|
||||||
"steam-unwrapped"
|
"steam"
|
||||||
"open-webui"
|
"steam-unwrapped"
|
||||||
"vscode-extension-github-copilot"
|
"open-webui"
|
||||||
"spotify"
|
"vscode-extension-github-copilot"
|
||||||
"cursor"
|
"spotify"
|
||||||
# NVIDIA related
|
"cursor"
|
||||||
"libcurand"
|
# NVIDIA related
|
||||||
"nvidia-x11"
|
"libcurand"
|
||||||
"cuda_cudart"
|
"nvidia-x11"
|
||||||
"cuda_nvcc"
|
"cuda_cudart"
|
||||||
"cuda_cccl"
|
"cuda_nvcc"
|
||||||
"libcublas"
|
"cuda_cccl"
|
||||||
"libcusparse"
|
"libcublas"
|
||||||
"libnvjitlink"
|
"libcusparse"
|
||||||
"libcufft"
|
"libnvjitlink"
|
||||||
"cudnn"
|
"libcufft"
|
||||||
"cuda_nvrtc"
|
"cudnn"
|
||||||
"libnpp"
|
"cuda_nvrtc"
|
||||||
"nvidia-settings"
|
"libnpp"
|
||||||
# blender with cuda is not foss?!?
|
"nvidia-settings"
|
||||||
"blender"
|
# blender with cuda is not foss?!?
|
||||||
|
"blender"
|
||||||
];
|
];
|
||||||
|
allowAliases = false
|
||||||
nixpkgs.config.allowAliases = false;
|
};
|
||||||
|
|
||||||
# Enable Nix flakes
|
# Enable Nix flakes
|
||||||
nix.settings.experimental-features = [
|
nix = {
|
||||||
"nix-command"
|
settings = {
|
||||||
"flakes"
|
experimental-features = [
|
||||||
];
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
trusted-users = [
|
||||||
|
"root"
|
||||||
|
config.osbmModules.defaultUser
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nix.channel.enable = false;
|
optimise.automatic = true;
|
||||||
|
|
||||||
# Nix registry configuration
|
channel.enable = false;
|
||||||
nix.registry = lib.mkIf (inputs ? self && inputs ? nixpkgs) {
|
|
||||||
self.flake = inputs.self;
|
registry = lib.mkIf (inputs ? self && inputs ? nixpkgs) {
|
||||||
nixpkgs.flake = inputs.nixpkgs;
|
self.flake = inputs.self;
|
||||||
osbm-nvim = lib.mkIf (inputs ? osbm-nvim) {
|
nixpkgs.flake = inputs.nixpkgs;
|
||||||
flake = inputs.osbm-nvim;
|
osbm-nvim = lib.mkIf (inputs ? osbm-nvim) {
|
||||||
|
flake = inputs.osbm-nvim;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Trusted users
|
|
||||||
nix.settings.trusted-users = [
|
|
||||||
"root"
|
|
||||||
config.osbmModules.defaultUser
|
|
||||||
];
|
|
||||||
|
|
||||||
# Optimize store automatically
|
|
||||||
nix.optimise.automatic = true;
|
|
||||||
|
|
||||||
system.configurationRevision = inputs.self.rev or "dirty";
|
system.configurationRevision = inputs.self.rev or "dirty";
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue