mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
Reorg
This commit is contained in:
parent
03b3066880
commit
6768bdb19e
9 changed files with 104 additions and 36 deletions
|
|
@ -9,7 +9,7 @@ after-login-command = []
|
|||
after-startup-command = []
|
||||
|
||||
# Start AeroSpace at login
|
||||
start-at-login = true
|
||||
# start-at-login = true
|
||||
|
||||
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
|
||||
enable-normalization-flatten-containers = true
|
||||
|
|
|
|||
|
|
@ -76,13 +76,12 @@
|
|||
};
|
||||
|
||||
darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem {
|
||||
pkgs = allPkgs."aarch64-darwin";
|
||||
specialArgs = {inherit inputs;};
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
|
||||
modules = [
|
||||
lix-module.nixosModules.default
|
||||
|
||||
./home/hinge/darwin.nix
|
||||
./machines/hinge/darwin.nix
|
||||
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
|
|
@ -90,7 +89,7 @@
|
|||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.extraSpecialArgs = {inherit inputs outputs;};
|
||||
home-manager.users."tyler.mayoff" = import ./home/hinge/hinge.nix;
|
||||
home-manager.users."tyler.mayoff" = import ./machines/hinge/home.nix;
|
||||
users.users."tyler.mayoff".home = "/Users/tyler.mayoff";
|
||||
}
|
||||
];
|
||||
|
|
@ -103,6 +102,12 @@
|
|||
modules = [./home/guidebolt/guidebolt.nix];
|
||||
};
|
||||
|
||||
# "tyler.mayoff@MAC-C57KK2TC69" = home-manager.lib.homeManagerConfiguration {
|
||||
# pkgs = allPkgs."aarch64-darwin";
|
||||
# extraSpecialArgs = {inherit inputs outputs;};
|
||||
# modules = [./home/wash/wash.nix];
|
||||
# };
|
||||
|
||||
"tyler@wash" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = allPkgs."x86_64-linux";
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
|
|
|
|||
|
|
@ -16,14 +16,14 @@
|
|||
./nushell.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
inputs.helix.overlays.default
|
||||
];
|
||||
};
|
||||
# nixpkgs = {
|
||||
# overlays = [
|
||||
# outputs.overlays.additions
|
||||
# outputs.overlays.modifications
|
||||
# outputs.overlays.unstable-packages
|
||||
# inputs.helix.overlays.default
|
||||
# ];
|
||||
# };
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# unstable.nix-output-monitor
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# services.aerospace.enable = true;
|
||||
|
||||
imports = [
|
||||
# ../fish.nix
|
||||
./sketchybar.nix
|
||||
|
|
@ -16,21 +14,26 @@
|
|||
outputs.overlays.additions
|
||||
outputs.overlays.modifications
|
||||
outputs.overlays.unstable-packages
|
||||
inputs.helix.overlays.default
|
||||
];
|
||||
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
hostPlatform = "aarch64-darwin";
|
||||
};
|
||||
|
||||
nix.extraOptions =
|
||||
''
|
||||
auto-optimise-store = true
|
||||
experimental-features = nix-command flakes
|
||||
''
|
||||
+ lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
||||
extra-platforms = x86_64-darwin aarch64-darwin
|
||||
'';
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
# nix.extraOptions =
|
||||
# ''
|
||||
# auto-optimise-store = true
|
||||
# experimental-features = nix-command flakes
|
||||
# ''
|
||||
# + lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
||||
# extra-platforms = x86_64-darwin aarch64-darwin
|
||||
# '';
|
||||
|
||||
users.knownUsers = ["tyler.mayoff"];
|
||||
users.users."tyler.mayoff" = {
|
||||
|
|
@ -47,7 +50,7 @@
|
|||
llvmPackages_19.clang-tools
|
||||
|
||||
sketchybar
|
||||
sbarlua
|
||||
# sbarlua
|
||||
|
||||
lua
|
||||
|
||||
|
|
@ -55,6 +58,8 @@
|
|||
jdk17
|
||||
];
|
||||
|
||||
# services.aerospace.enable = true;
|
||||
|
||||
programs.fish.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
../stylix.nix
|
||||
../common.nix
|
||||
../kitty.nix
|
||||
# ../../home/stylix.nix
|
||||
../../home/common.nix
|
||||
../../home/kitty.nix
|
||||
];
|
||||
|
||||
# xdg.enable = lib.mkForce false;
|
||||
|
|
@ -42,5 +42,7 @@
|
|||
'';
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.stateVersion = "24.11";
|
||||
}
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
pkgs: {
|
||||
sbarlua = {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
repo = "SbarLua";
|
||||
owner = "FelixKratz";
|
||||
rev = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
||||
};
|
||||
};
|
||||
sbarlua = pkgs.callPackage ./sbarlua {};
|
||||
}
|
||||
|
|
|
|||
62
dot_config/flake/pkgs/sbarlua/default.nix
Normal file
62
dot_config/flake/pkgs/sbarlua/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gcc,
|
||||
lua,
|
||||
nix-update-script,
|
||||
apple-sdk_15,
|
||||
versionCheckHook,
|
||||
}: let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
|
||||
target =
|
||||
{
|
||||
"aarch64-darwin" = "arm64";
|
||||
"x86_64-darwin" = "x86";
|
||||
}
|
||||
.${system}
|
||||
or (throw "Unsupported system: ${system}");
|
||||
in
|
||||
stdenv.mkDerivation (
|
||||
finalAttrs: {
|
||||
pname = "SBarLua";
|
||||
version = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
||||
src = fetchFromGitHub {
|
||||
repo = "SbarLua";
|
||||
owner = "FelixKratz";
|
||||
rev = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
||||
hash = "sha256-F0UfNxHM389GhiPQ6/GFbeKQq5EvpiqQdvyf7ygzkPg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gcc
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
apple-sdk_15
|
||||
lua
|
||||
];
|
||||
|
||||
# buildPhase = ''
|
||||
# make
|
||||
# '';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
ls -la
|
||||
|
||||
cp ./bin/sbarlua $out/bin/sbarlua
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/FelixKratz/SbarLua";
|
||||
platforms = lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue