feat: wrap all config in config = {}

To make it easier to add other top level attrsets if needed
This commit is contained in:
punkfairie 2025-05-26 13:29:52 -07:00
parent ccfb74fa5c
commit 106b0d752e
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
11 changed files with 97 additions and 75 deletions

View file

@ -6,6 +6,7 @@
email = "marley@punkfairie.net";
};
in {
config = {
marleycfg.my = my;
home-manager = {
@ -20,4 +21,5 @@ in {
sharedModules = [../home];
extraSpecialArgs = {inherit marleylib;};
};
};
}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
config = {
stylix = {
enable = true;
@ -18,4 +19,5 @@
};
};
};
};
}

View file

@ -1,4 +1,5 @@
{
config = {
nix = {
settings = {
trusted-users = [
@ -6,4 +7,5 @@
];
};
};
};
}

View file

@ -1,8 +1,10 @@
{
config = {
programs.home-manager.enable = true;
home.language.base = "en_US.UTF-8";
# Autostart wanted systemd services on Linux.
systemd.user.startServices = true;
};
}

View file

@ -1,6 +1,7 @@
{osConfig, ...}: let
cfg = osConfig.marleycfg;
in {
config = {
marleycfg = {
profiles = {
inherit (cfg.profiles) desktop server;
@ -10,4 +11,5 @@ in {
inherit (cfg.my) name fullName username email git;
};
};
};
}

View file

@ -1,7 +1,9 @@
{
config = {
boot.supportedFilesystems = {
ntfs = true;
};
services.udisks2.enable = true;
};
}

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
config = {
fonts = {
enableDefaultPackages = true;
@ -7,4 +8,5 @@
noto-fonts
];
};
};
}

View file

@ -4,6 +4,7 @@
config,
...
}: {
config = {
boot = {
kernelPackages =
lib.mkIf (!config.marleycfg.profiles.server)
@ -14,4 +15,5 @@
efi.canTouchEfiVariables = true;
};
};
};
}

View file

@ -1,4 +1,5 @@
{config, ...}: {
config = {
time.timeZone =
if config.marleycfg.profiles.server
then "UTC"
@ -12,4 +13,5 @@
LC_TIME = "de_DE.UTF-8";
};
};
};
}

View file

@ -3,6 +3,7 @@
config,
...
}: {
config = {
networking = {
networkmanager.enable = true;
@ -13,4 +14,5 @@
wireless.enable = lib.mkIf config.marleycfg.profiles.server false;
};
};
}

View file

@ -1,4 +1,5 @@
{
config = {
nix = {
settings = {
trusted-users = [
@ -6,4 +7,5 @@
];
};
};
};
}