lean
This commit is contained in:
parent
a80eeb2a16
commit
aa6bbc2b48
1 changed files with 52 additions and 53 deletions
|
|
@ -7,8 +7,9 @@
|
||||||
{
|
{
|
||||||
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 = {
|
||||||
|
allowUnfreePredicate = pkg:
|
||||||
builtins.elem (lib.getName pkg) [
|
builtins.elem (lib.getName pkg) [
|
||||||
"vscode"
|
"vscode"
|
||||||
"discord"
|
"discord"
|
||||||
|
|
@ -35,38 +36,36 @@
|
||||||
"nvidia-settings"
|
"nvidia-settings"
|
||||||
# blender with cuda is not foss?!?
|
# blender with cuda is not foss?!?
|
||||||
"blender"
|
"blender"
|
||||||
|
|
||||||
];
|
];
|
||||||
|
allowAliases = false
|
||||||
nixpkgs.config.allowAliases = false;
|
};
|
||||||
|
|
||||||
# Enable Nix flakes
|
# Enable Nix flakes
|
||||||
nix.settings.experimental-features = [
|
nix = {
|
||||||
|
settings = {
|
||||||
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"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) {
|
|
||||||
|
registry = lib.mkIf (inputs ? self && inputs ? nixpkgs) {
|
||||||
self.flake = inputs.self;
|
self.flake = inputs.self;
|
||||||
nixpkgs.flake = inputs.nixpkgs;
|
nixpkgs.flake = inputs.nixpkgs;
|
||||||
osbm-nvim = lib.mkIf (inputs ? osbm-nvim) {
|
osbm-nvim = lib.mkIf (inputs ? osbm-nvim) {
|
||||||
flake = 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