From bc91f63a39a0c561fc9607db3d8a31185a710c98 Mon Sep 17 00:00:00 2001 From: Alexandre1a Date: Wed, 10 Dec 2025 20:44:07 +0100 Subject: [PATCH] Before flake update --- hosts/macos/configuration.nix | 32 ++++++++++++++++++++--- hosts/macos/home.nix | 48 ++++++++++++++++++++++++++++++++--- 2 files changed, 73 insertions(+), 7 deletions(-) diff --git a/hosts/macos/configuration.nix b/hosts/macos/configuration.nix index 0b12335..939bd14 100644 --- a/hosts/macos/configuration.nix +++ b/hosts/macos/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: +{ config, pkgs, inputs, ... }: { # All imports go here @@ -10,11 +10,33 @@ ]; # All System packages - environment.systemPackages = + environment.systemPackages = with pkgs; [ - pkgs.vim + # Basic text editing for all users + neovim + vim + # General tools + btop + eza + fastfetch + ffmpeg + fzf + git + git-lfs + gnupg + wget + tree + netcat + tmux + #telnet + ]; - + # Create the user + users.users.alex = { + description = "Alexandre Delcamp--Enache"; + home = "/Users/alex"; + shell = pkgs.zsh; + }; # HomeManager home-manager = { extraSpecialArgs = { inherit inputs; }; @@ -30,6 +52,8 @@ }; }; # Enable required settings + # TouchID login + security.pam.services.sudo_local.touchIdAuth = true; # Flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Target arch diff --git a/hosts/macos/home.nix b/hosts/macos/home.nix index 0bb92dc..6c07009 100644 --- a/hosts/macos/home.nix +++ b/hosts/macos/home.nix @@ -1,14 +1,56 @@ +{ config, pkgs, ... }: + { # Refer to the nixOS host for info about home-manager home.username = "alex"; - home.homeDirecotry = "/Users/alex"; + home.homeDirectory = "/Users/alex"; home.stateVersion = "25.11"; - home.packages = [ - pkgs.hello + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + + home.packages = with pkgs; [ + yt-dlp + syncthing + obsidian + bitwarden-desktop + # Window management (maybe configure it with home-manager) + yabai + skhd + #borders + + # Dev + doxygen + autoconf + pkg-config + swig + pandoc + gh + cmatrix + iterm2 + vscode + + # Go + hugo + + # JavaScript + pnpm + nodejs + + # C/CPP + ninja + cmake + + # Python + python312 + + # Customisation + spicetify-cli ]; + # + programs.home-manager.enable = true; }