Lot of change on structs

This commit is contained in:
2026-04-09 09:09:13 +02:00
parent e656247a48
commit 90bc1eb63d
42 changed files with 108 additions and 133 deletions
+43
View File
@@ -0,0 +1,43 @@
{
lib,
config,
homebrew-core,
homebrew-cask,
...
}:
let
cfg = config.os.homebrew;
in
{
options.os.homebrew = {
enable = lib.mkEnableOption "Homebrew options";
};
config = lib.mkIf cfg.enable {
nix-homebrew = {
# User owning the Homebrew prefix
user = "alistreaza";
# Install Homebrew under the default prefix
enable = true;
# Apple Silicon Only: Also install Homebrew under the default Intel prefix for Rosetta 2
enableRosetta = false;
# Optional: Declarative tap management
taps = {
"homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask;
};
# Optional: Enable fully-declarative tap management
#
# With mutableTaps disabled, taps can no longer be added imperatively with `brew tap`.
mutableTaps = false;
};
homebrew.enable = true;
homebrew.taps = builtins.attrNames config.nix-homebrew.taps;
};
}
-31
View File
@@ -1,31 +0,0 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.os.gnome.apps;
in
{
options.os.gnome.apps = {
enable = mkEnableOption "System gnome apps service";
};
config = mkIf cfg.enable {
environment = {
systemPackages =
with pkgs;
[ nautilus ]
++ [
papers
loupe
celluloid
];
};
services.gvfs.enable = true; # SMB, FTP, ... access
};
}
+19
View File
@@ -0,0 +1,19 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.flatpak;
in
{
options.os.flatpak = {
enable = mkEnableOption "System pipewire service";
};
config = mkIf cfg.enable {
services.flatpak.enable = true;
services.flatpak.update.auto = {
enable = true;
onCalendar = "weekly"; # Default value
};
};
}
@@ -1,5 +1,4 @@
{
pkgs,
lib,
config,
...
@@ -16,10 +15,6 @@ in
services.printing = {
enable = true;
drivers = with pkgs; [
cups-filters
cups-browsed
];
};
};
@@ -26,7 +26,6 @@ in
environment = {
systemPackages = with pkgs; [
pods
podman-compose
];
};