feat: Add config for tetrahedrite

This commit is contained in:
Leni Aniva 2024-11-23 22:35:56 -08:00
parent ca50a35521
commit d0ae2e6a32
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
4 changed files with 54 additions and 5 deletions

View File

@ -10,8 +10,13 @@
};
outputs = inputs@{ self, nixpkgs-darwin, nix-darwin }: {
darwinConfigurations."sphalerite" = nix-darwin.lib.darwinSystem {
modules = [ ./configuration.nix ];
darwinConfigurations."tetrahedrite" = nix-darwin.lib.darwinSystem {
modules = [
./nix-darwin/configuration.nix
{
nixpkgs.hostPlatform = "x86_64-darwin";
}
];
};
};
}

View File

@ -1,5 +1,6 @@
{ config, pkgs, ... }:
{
imports = [ ./homebrew.nix ./yabai-skhd.nix ];
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = [
@ -7,13 +8,30 @@
];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
services = {
nix-daemon.enable = true;
karabiner-elements.enable = true;
sketchybar = {
enable = true;
};
};
nix = {
package = pkgs.nix;
settings.experimental-features = "nix-command flakes";
};
# Enable alternative shell support in nix-darwin.
programs.fish.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 5;
system = {
stateVersion = 5;
defaults = {
dock = {
autohide = true;
orientation = "bottom";
};
};
};
}

13
nix-darwin/homebrew.nix Normal file
View File

@ -0,0 +1,13 @@
{ ... }:
{
homebrew = {
enable = true;
casks = [
"karabiner-elements"
"vlc"
];
taps = [
"railwaycat/emacsmacport"
];
};
}

13
nix-darwin/yabai-skhd.nix Normal file
View File

@ -0,0 +1,13 @@
{ ... }:
{
services = {
yabai = {
enable = true;
extraConfig = builtins.readFile ../yabai/yabairc;
};
skhd = {
enable = true;
skhdConfig = builtins.readFile ../skhd/skhdrc;
};
};
}