Added nix-darwin properly

This commit is contained in:
Tyler Mayoff 2025-02-04 15:18:06 -05:00
parent 1044e1ed1b
commit c45afedd4a
No known key found for this signature in database
GPG key ID: B62A5AFAD8E14845
9 changed files with 82 additions and 42 deletions

View file

@ -10,7 +10,10 @@
};
nixgl.url = "github:nix-community/nixGL";
helix.url = "github:helix-editor/helix/25.01.1";
darwin.url = "github:lnl7/nix-darwin";
darwin = {
url = "github:lnl7/nix-darwin/nix-darwin-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
@ -45,9 +48,22 @@
};
darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem {
specialArgs = {inherit inputs outputs;};
modules = [./home/hinge/darwin.nix];
pkgs = allPkgs."aarch64-darwin";
specialArgs = {inherit inputs;};
modules = [
./home/hinge/darwin.nix
home-manager.darwinModules.home-manager
{
# pkgs = allPkgs."aarch64-darwin";
#home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs;};
home-manager.users."tyler.mayoff" = import ./home/hinge/hinge.nix;
users.users."tyler.mayoff".home = "/Users/tyler.mayoff";
}
];
};
homeConfigurations = {
@ -69,11 +85,11 @@
modules = [./home/mal/mal.nix];
};
"tyler.mayoff@MAC-C57KK2TC69" = home-manager.lib.homeManagerConfiguration {
pkgs = allPkgs."aarch64-darwin";
extraSpecialArgs = {inherit inputs outputs;};
modules = [./home/hinge/hinge.nix];
};
# "tyler.mayoff@MAC-C57KK2TC69" = home-manager.lib.homeManagerConfiguration {
# pkgs = allPkgs."aarch64-darwin";
# extraSpecialArgs = {inherit inputs outputs;};
# modules = [./home/hinge/hinge.nix];
# };
};
};
}

View file

@ -4,10 +4,7 @@
pkgs,
...
}: {
nixpkgs.config.allowUnfree = true;
home.username = "tyler";
home.homeDirectory = "/home/tyler";
#nixpkgs.config.allowUnfree = true;
home.enableNixpkgsReleaseCheck = false;
@ -17,8 +14,6 @@
./shell.nix
./fish.nix
./nushell.nix
# ./nom.nix
# ./neovim.nix
];
nixpkgs = {
@ -31,7 +26,7 @@
};
home.packages = with pkgs; [
unstable.nix-output-monitor
# unstable.nix-output-monitor
# dotfiles
age
@ -53,7 +48,7 @@
git
fzf
zoxide
just
# Software Dev
tig
@ -114,6 +109,6 @@
enable = true;
};
home.stateVersion = "23.11";
# home.stateVersion = "23.11";
programs.home-manager.enable = true;
}

View file

@ -3,8 +3,8 @@
# Git
gc = "git commit";
gcm = "git commit -m";
# gac = "git add . and git commit";
# gacp = "gac and git push";
gac = "git add . and git commit";
gacp = "gac and git push";
gs = "git status";
# nix

View file

@ -8,9 +8,14 @@
}: {
imports = [../common.nix];
home.packages = with pkgs; [
home = {
username = "tyler";
homeDirectory = "/home/tyler";
packages = with pkgs; [
# clang_17
# clang-tools
just
];
};
}

View file

@ -1,8 +1,19 @@
{
inputs,
outputs,
lib,
...
}: {
{pkgs, ...}: {
# services.aerospace.enable = true;
imports = [
# ../fish.nix
];
users.users."tyler.mayoff".shell = pkgs.fish;
services.sketchybar.enable = true;
system.stateVersion = 5;
environment.systemPackages = with pkgs; [
pinentry_mac
];
programs.fish.enable = true;
}

View file

@ -1,16 +1,14 @@
{
lib,
pkgs,
...
}: {
{pkgs, ...}: {
imports = [
../common.nix
../kitty.nix
];
# xdg.enable = lib.mkForce false;
home = {
username = lib.mkForce "tyler.mayoff";
homeDirectory = lib.mkForce "/Users/tyler.mayoff";
username = "tyler.mayoff";
# homeDirectory = /Users/tyler.mayoff;
packages = with pkgs; [
bazel_7
@ -40,4 +38,6 @@
PATH = "$PATH:/Users/tyler.mayoff/Library/Android/sdk/platform-tools";
};
};
home.stateVersion = "24.11";
}

View file

@ -1,3 +1,8 @@
{pkgs, ...}: {
imports = [../common.nix];
home = {
username = "tyler";
homeDirectory = "/home/tyler";
};
}

View file

@ -6,6 +6,9 @@
config.home.shellAliases;
extraConfig = ''
$env.PATH = ($env.PATH | split row (char esep) | append "~/.nix-profile/bin")
$env.PATH = ($env.PATH | split row (char esep) | append "/nix/var/nix/profiles/default/bin")
$env.config.show_banner = false
def gac [] { git add .; git commit }

View file

@ -5,8 +5,13 @@
}: {
imports = [../common.nix ../gnome.nix ../home-backup.nix ../gui.nix];
home.packages = with pkgs; [
home = {
username = "tyler";
homeDirectory = "/home/tyler";
packages = with pkgs; [
ventoy
(config.lib.nixGL.wrap renderdoc)
];
};
}