Conditionals!

This commit is contained in:
Benson Chu 2024-08-25 08:45:01 -05:00
parent 8f2938da34
commit d5e1d319f3

View file

@ -1,4 +1,4 @@
{ inputs, config, pkgs, ... }:
{ inputs, config, pkgs, lib, ... }:
{
imports = [
@ -14,10 +14,11 @@
home.username = "benson";
home.homeDirectory = "/home/benson";
nix = {
nix = (lib.mkIf (!config.submoduleSupport.enable) {
package = pkgs.nix;
settings.experimental-features = "nix-command flakes";
};
registry.nixpkgs.flake = inputs.nixpkgs;
});
my.bash-config.enable = true;
@ -81,7 +82,6 @@
EDITOR = "emacsclient -n";
};
nix.registry.nixpkgs.flake = inputs.nixpkgs;
# Let Home Manager install and manage itself.
programs = {