Something went wrong. Try again.
My NixOS and nix-darwin configuration.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172# Shared System Configuration## This module provides system-wide configuration that applies to both NixOS and Darwin systems.# It includes Nix configuration, fonts, environment variables, and shell setup.{ config, lib, pkgs, ...}:{ config = { # Allow unfree packages system-wide nixpkgs.config = { allowUnfree = true; };
# Set timezone from configuration time.timeZone = config.dc-tec.timeZone;
# Enable zsh system-wide programs.zsh.enable = true; environment.shells = with pkgs; [ zsh ];
# Set default editor environment.variables.EDITOR = config.dc-tec.user.editor;
# System fonts for both platforms fonts = { packages = with pkgs; [ material-design-icons font-awesome nerd-fonts.symbols-only nerd-fonts._0xproto ]; };
# Nix configuration with flakes and garbage collection nix = { enable = true; package = pkgs.nix; settings = { trusted-users = [ config.dc-tec.user.name ]; experimental-features = [ "nix-command" "flakes" ]; warn-dirty = false; auto-optimise-store = false; };
# Weekly garbage collection gc = { automatic = true; options = "--delete-older-than 7d"; } // lib.optionalAttrs config.dc-tec.isDarwin { interval = { Hour = 1; Minute = 0; Weekday = 7; }; } // lib.optionalAttrs config.dc-tec.isLinux { dates = "Sun 01:00"; }; }; };}