Move old config here

This commit is contained in:
2023-05-18 12:07:07 +02:00
parent 97fd90c347
commit f728476449
48 changed files with 5844 additions and 49 deletions
+6
View File
@@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
imports = [
./nix.nix
];
}
+23
View File
@@ -0,0 +1,23 @@
{ config, pkgs, lib, inputs, materusPkgs, ... }:
let
cfg = config.materus.profile.nix;
in
{
options.materus.profile.nix.enable = materusPkgs.lib.mkBoolOpt false "Enable materus nix settings";
config.nix = lib.mkIf cfg.enable {
package = pkgs.nixVersions.unstable;
settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" "no-url-literals" ];
auto-optimise-store = true;
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ];
};
};
}