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"; nixgl.url = "github:nix-community/nixGL";
helix.url = "github:helix-editor/helix/25.01.1"; 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 = { outputs = {
@ -45,9 +48,22 @@
}; };
darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem { darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem {
specialArgs = {inherit inputs outputs;}; pkgs = allPkgs."aarch64-darwin";
modules = [./home/hinge/darwin.nix]; 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 = { homeConfigurations = {
@ -69,11 +85,11 @@
modules = [./home/mal/mal.nix]; modules = [./home/mal/mal.nix];
}; };
"tyler.mayoff@MAC-C57KK2TC69" = home-manager.lib.homeManagerConfiguration { # "tyler.mayoff@MAC-C57KK2TC69" = home-manager.lib.homeManagerConfiguration {
pkgs = allPkgs."aarch64-darwin"; # pkgs = allPkgs."aarch64-darwin";
extraSpecialArgs = {inherit inputs outputs;}; # extraSpecialArgs = {inherit inputs outputs;};
modules = [./home/hinge/hinge.nix]; # modules = [./home/hinge/hinge.nix];
}; # };
}; };
}; };
} }

View file

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

View file

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

View file

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

View file

@ -1,8 +1,19 @@
{ {pkgs, ...}: {
inputs,
outputs,
lib,
...
}: {
# services.aerospace.enable = true; # 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 @@
{ {pkgs, ...}: {
lib,
pkgs,
...
}: {
imports = [ imports = [
../common.nix ../common.nix
../kitty.nix ../kitty.nix
]; ];
# xdg.enable = lib.mkForce false;
home = { home = {
username = lib.mkForce "tyler.mayoff"; username = "tyler.mayoff";
homeDirectory = lib.mkForce "/Users/tyler.mayoff"; # homeDirectory = /Users/tyler.mayoff;
packages = with pkgs; [ packages = with pkgs; [
bazel_7 bazel_7
@ -40,4 +38,6 @@
PATH = "$PATH:/Users/tyler.mayoff/Library/Android/sdk/platform-tools"; PATH = "$PATH:/Users/tyler.mayoff/Library/Android/sdk/platform-tools";
}; };
}; };
home.stateVersion = "24.11";
} }

View file

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

View file

@ -6,6 +6,9 @@
config.home.shellAliases; config.home.shellAliases;
extraConfig = '' 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 $env.config.show_banner = false
def gac [] { git add .; git commit } def gac [] { git add .; git commit }

View file

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