Lot of change on structs

This commit is contained in:
Administrateur committed 2026-04-09 09:09:13 +02:00
1 parent e656247a48
commit 90bc1eb63d
42 files changed
+108 -133

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+20
View File
@@ -0,0 +1,20 @@
{ lib, config, ... }:
with lib;
let
cfg = config.home.xdg;
in
{
options.home.xdg = {
enable = mkEnableOption "Xdg service";
};
config = mkIf cfg.enable {
xdg = {
userDirs = {
enable = true;
createDirectories = true;
};
};
};
}
-22
View File
@@ -1,22 +0,0 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.home.ide.zed;
in
{
options.home.ide.zed = {
enable = mkEnableOption "Zen Editor options";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
zed-editor
];
};
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+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
};
};
}
File renamed without changes.
@@ -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
];
};