Restructure flake.nix for a simpler config for building different images off the same NixOS config.
This commit is contained in:
@@ -8,7 +8,16 @@
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
config = lib.mkIf config.me.graphical {
|
||||
options.me = {
|
||||
font.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Whether we want to install font.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.me.font.enable && config.me.graphical) {
|
||||
fonts = {
|
||||
enableDefaultPackages = false;
|
||||
packages = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user