LLRYXY25L67F5SIWZCZ3MXBC67T6LMQ3JBBJJR2ESKALWHXT4YGAC Z6CMRV35YF3OAR777KIZ4GYUBCRIYDYWTBJ5VW625A5AJN4XRA7QC YQTJKSDUZ6Y6LSJGOKBYQOPG3IG5RFMRKO2JGVUN5Q7AHPGOWFTAC 5G7WRBMWKG6DMCOHE6WQHTYZACUHO2UPBZRWN72CFH7P45NN5E7QC KXYLAJ5WZIXV5FQ4TU3IPHCO2YRKQBAZBW27LOA5EVWI2OLVPIIAC AH6HSGEDTDCT77KUZXFSBB3U22PORVZ2RFGEN2DHYJNUHG6UWDPAC RXJH46XLP6AFSIZZD4WEQA5A5YZLKHZ54ZUGCRH7TRAOH2Z4Q2VQC GT35NGAHIVA7RXCZRK6OPFIC6KRVJ7SNI2AKVYLZLMVSBIKLOIEQC #!/usr/bin/env nudef main [] {let os = (sys host | get name)if $os == "Darwin" {print "Rolling back Darwin configuration..."sudo darwin-rebuild switch --rollback --flake ~/nixos-config#darwin} else {print "Rolling back NixOS configuration..."sudo nixos-rebuild switch --rollback --flake ~/nixos-config#nixos}}
#!/usr/bin/env nudef main [] {let os = (sys host | get name)if $os == "Darwin" {print "Building Darwin configuration..."sudo darwin-rebuild switch --flake ~/nixos-config#darwin} else {print "Building NixOS configuration..."sudo nixos-rebuild switch --flake ~/nixos-config#nixos}}
{pkgs,lib,...}:{nixpkgs.config.allowUnfree = true;nix = {settings = {experimental-features = ["nix-command""flakes""pipe-operators"];};optimise.automatic = true;gc = {automatic = true;interval = {Weekday = 1;Hour = 0;Minute = 0;};options = "--delete-older-than 7d";};};users.users.james = {name = "james";home = "/Users/james";shell = pkgs.nushell;};system.primaryUser = "james";# thanks github/rgbcube for the stuff belowsecurity.pam.services.sudo_local = {enable = true;touchIdAuth = true;};system.defaults.CustomSystemPreferences."com.apple.AdLib" = {allowApplePersonalizedAdvertising = false;allowIdentifierForAdvertising = false;forceLimitAdTracking = true;personalizedAdsMigrated = false;};system.defaults.SoftwareUpdate.AutomaticallyInstallMacOSUpdates = true;system.defaults.loginwindow = {DisableConsoleAccess = true;GuestEnabled = false;};system.defaults.trackpad = {Clicking = false; # no touch-to-clickDragging = false; # no tap-to-drag};system.defaults.dock = {autohide = true;showhidden = true; # translucentmouse-over-hilite-stack = true;show-recents = false;mru-spaces = false;tilesize = 48;magnification = false;enable-spring-load-actions-on-all-items = true;persistent-apps = [{ app = "/Users/james/Applications/Home Manager Apps/Alacritty.app"; }{ app = "/Users/james/Applications/Home Manager Apps/Arc.app"; }{app = "/Users/james/Applications/Home Manager Apps/Karabiner-Elements.app";}];};system.defaults.CustomSystemPreferences."com.apple.dock" = {autohide-time-modifier = 0.0;autohide-delay = 0.0;expose-animation-duration = 0.0;springboard-show-duration = 0.0;springboard-hide-duration = 0.0;springboard-page-duration = 0.0;# Disable hot corners.wvous-tl-corner = 0;wvous-tr-corner = 0;wvous-bl-corner = 0;wvous-br-corner = 0;launchanim = 0;};system.stateVersion = 5;}
rebuild = "sudo nixos-rebuild switch --flake /home/james/nixos-config#nixos";rollback = "sudo nixos-rebuild switch --rollback --flake /home/james/nixos-config#nixos";
rebuild = "~/nixos-config/rebuild.nu";rollback = "~/nixos-config/rollback.nu";
{config,lib,pkgs,...}:letdark_theme = "gruber_darker";light_theme = "gruvbox_material_medium_light";in{programs.alacritty = lib.mkIf pkgs.stdenv.isDarwin {enable = true;theme = light_theme;package = pkgs.alacritty;settings = {window = {decorations = "None";};font = {size = 22;builtin_box_drawing = false;normal = {family = "IosevkaTerm Nerd Font Mono";style = "Regular";};};cursor = {unfocused_hollow = true;};terminal.shell = {program = "nu -e /etc/profiles/per-user/james/bin/zellij attach james --create";};};};}
system = "x86_64-linux";pkgs = import nixpkgs { inherit system; };
systems = {linux = "x86_64-linux";darwin = "aarch64-darwin";};mkHomeConfig = system: {inheritsystemfenixnvfbacon-ls;pkgs = import nixpkgs {inherit system;config.allowUnfree = true;};};
home-manager.users.james = import ./home/default.nix {inheritpkgssystemfenixnvfbacon-ls;};
home-manager.users.james = import ./home/default.nix (mkHomeConfig systems.linux);})];};darwinConfigurations.darwin = nix-darwin.lib.darwinSystem {system = systems.darwin;modules = [./hosts/darwin/configuration.nixhome-manager.darwinModules.home-manager({ pkgs, ... }:{home-manager.useGlobalPkgs = true;home-manager.useUserPackages = true;home-manager.users.james = import ./home/default.nix (mkHomeConfig systems.darwin);