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 = []
|
after-startup-command = []
|
||||||
|
|
||||||
# Start AeroSpace at login
|
# Start AeroSpace at login
|
||||||
start-at-login = true
|
# start-at-login = true
|
||||||
|
|
||||||
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
|
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
|
||||||
enable-normalization-flatten-containers = true
|
enable-normalization-flatten-containers = true
|
||||||
|
|
|
||||||
|
|
@ -76,13 +76,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem {
|
darwinConfigurations."MAC-C57KK2TC69" = darwin.lib.darwinSystem {
|
||||||
pkgs = allPkgs."aarch64-darwin";
|
specialArgs = {inherit inputs outputs;};
|
||||||
specialArgs = {inherit inputs;};
|
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
|
||||||
./home/hinge/darwin.nix
|
./machines/hinge/darwin.nix
|
||||||
|
|
||||||
home-manager.darwinModules.home-manager
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
|
|
@ -90,7 +89,7 @@
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
home-manager.extraSpecialArgs = {inherit inputs outputs;};
|
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";
|
users.users."tyler.mayoff".home = "/Users/tyler.mayoff";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -103,6 +102,12 @@
|
||||||
modules = [./home/guidebolt/guidebolt.nix];
|
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 {
|
"tyler@wash" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = allPkgs."x86_64-linux";
|
pkgs = allPkgs."x86_64-linux";
|
||||||
extraSpecialArgs = {inherit inputs outputs;};
|
extraSpecialArgs = {inherit inputs outputs;};
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,14 @@
|
||||||
./nushell.nix
|
./nushell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
# nixpkgs = {
|
||||||
overlays = [
|
# overlays = [
|
||||||
outputs.overlays.additions
|
# outputs.overlays.additions
|
||||||
outputs.overlays.modifications
|
# outputs.overlays.modifications
|
||||||
outputs.overlays.unstable-packages
|
# outputs.overlays.unstable-packages
|
||||||
inputs.helix.overlays.default
|
# inputs.helix.overlays.default
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# unstable.nix-output-monitor
|
# unstable.nix-output-monitor
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# services.aerospace.enable = true;
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
# ../fish.nix
|
# ../fish.nix
|
||||||
./sketchybar.nix
|
./sketchybar.nix
|
||||||
|
|
@ -16,21 +14,26 @@
|
||||||
outputs.overlays.additions
|
outputs.overlays.additions
|
||||||
outputs.overlays.modifications
|
outputs.overlays.modifications
|
||||||
outputs.overlays.unstable-packages
|
outputs.overlays.unstable-packages
|
||||||
|
inputs.helix.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hostPlatform = "aarch64-darwin";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.extraOptions =
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
''
|
|
||||||
auto-optimise-store = true
|
# nix.extraOptions =
|
||||||
experimental-features = nix-command flakes
|
# ''
|
||||||
''
|
# auto-optimise-store = true
|
||||||
+ lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
# experimental-features = nix-command flakes
|
||||||
extra-platforms = x86_64-darwin aarch64-darwin
|
# ''
|
||||||
'';
|
# + lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
||||||
|
# extra-platforms = x86_64-darwin aarch64-darwin
|
||||||
|
# '';
|
||||||
|
|
||||||
users.knownUsers = ["tyler.mayoff"];
|
users.knownUsers = ["tyler.mayoff"];
|
||||||
users.users."tyler.mayoff" = {
|
users.users."tyler.mayoff" = {
|
||||||
|
|
@ -47,7 +50,7 @@
|
||||||
llvmPackages_19.clang-tools
|
llvmPackages_19.clang-tools
|
||||||
|
|
||||||
sketchybar
|
sketchybar
|
||||||
sbarlua
|
# sbarlua
|
||||||
|
|
||||||
lua
|
lua
|
||||||
|
|
||||||
|
|
@ -55,6 +58,8 @@
|
||||||
jdk17
|
jdk17
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# services.aerospace.enable = true;
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
../stylix.nix
|
# ../../home/stylix.nix
|
||||||
../common.nix
|
../../home/common.nix
|
||||||
../kitty.nix
|
../../home/kitty.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# xdg.enable = lib.mkForce false;
|
# xdg.enable = lib.mkForce false;
|
||||||
|
|
@ -42,5 +42,7 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
@ -1,9 +1,3 @@
|
||||||
pkgs: {
|
pkgs: {
|
||||||
sbarlua = {
|
sbarlua = pkgs.callPackage ./sbarlua {};
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
repo = "SbarLua";
|
|
||||||
owner = "FelixKratz";
|
|
||||||
rev = "437bd2031da38ccda75827cb7548e7baa4aa9978";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ $(command -v nixos-rebuild) ]] && sudo nixos-rebuild switch --flake ~/.config/flake
|
[[ $(command -v nixos-rebuild) ]] && sudo nixos-rebuild switch --flake ~/.config/flake
|
||||||
[[ $(command -v darwin-rebuild) ]] && sudo darwin-rebuild switch --flake ~/.config/flake/
|
[[ $(command -v darwin-rebuild) ]] && darwin-rebuild switch --flake ~/.config/flake/
|
||||||
[[ $(command -v home-manager) ]] && home-manager switch --flake ~/.config/flake/
|
[[ $(command -v home-manager) ]] && home-manager switch --flake ~/.config/flake/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue