Modularizing system configuration #3

Merged
wymiller merged 10 commits from modular into master 2024-12-27 00:27:25 -06:00
5 changed files with 21 additions and 35 deletions
Showing only changes of commit ea8607eb41 - Show all commits

View File

@ -3,9 +3,7 @@
pkgs,
userName,
...
}: let
timeZone = null;
in {
}: {
imports = [
../../apps/flatpak.nix
../../pwrMgmt
@ -27,7 +25,7 @@ in {
hardware.bluetooth.enable = true;
# Set your timezone
time.timeZone = timeZone ? "America/Detroit";
time.timeZone = "America/Detroit";
# Enable touchpad
services.libinput.enable = true;

View File

@ -1,6 +0,0 @@
{...}: {
imports = [
./configuration.nix
./hardware-configuration.nix
];
}

View File

@ -171,7 +171,6 @@
enable = true;
dockerCompat = false;
extraPackages = with pkgs; [
podman-tui
docker-credential-helpers
cosign
crane

View File

@ -1,6 +0,0 @@
{...}: {
imports = [
./apps.nix
./configuration.nix
];
}

View File

@ -18,22 +18,23 @@ in {
};
};
config = lib.mkIf cfg.podman.enable {
virtualisation.podman = {
enable = true;
dockerCompat = cfg.podman.dockerCompat;
enableOnBoot = true;
defaultNetwork.settings.dns_enabled = true;
};
environment.systemPackages =
[
pkgs.podman-compose
pkgs.buildah
pkgs.skopeo
pkgs.dive
pkgs.container-diff
]
++ cfg.podman.extraPackages;
};
config = lib.mkIf cfg.enable (lib.attrsets.optionalAttrs (config.nixpkgs.hostPlatform.isLinux) {
virtualisation.podman = {
enable = true;
dockerCompat = cfg.dockerCompat;
enableOnBoot = true;
defaultNetwork.settings.dns_enabled = true;
};
}
// {
environment.systemPackages =
[
pkgs.podman-compose
pkgs.buildah
pkgs.skopeo
pkgs.dive
pkgs.container-diff
]
++ cfg.extraPackages;
});
}