Compare commits

..

9 Commits

8 changed files with 73 additions and 13 deletions

View File

@ -94,5 +94,13 @@
./hosts/caveserver/home.nix ./hosts/caveserver/home.nix
]; ];
}; };
homeConfigurations."zynh" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
extraSpecialArgs = { inherit inputs; };
modules = [
./hosts/little-lightning/home.nix
];
};
}; };
} }

View File

@ -5,7 +5,8 @@ let
in in
{ {
options.snowhawk.alacritty = { options.snowhawk.alacritty = {
enable = lib.mkEnableOption "alacritty"; enable = lib.mkEnableOption "alacritty home-manager module";
macos = lib.mkEnableOption "macos specific tweaks";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
@ -14,6 +15,8 @@ in
settings = { settings = {
window = { window = {
opacity = 0.98; opacity = 0.98;
decorations = lib.mkIf cfg.macos "buttonless";
option_as_alt = lib.mkIf cfg.macos "Both";
}; };
colors = { colors = {
primary.background = "#050505"; primary.background = "#050505";

View File

@ -17,5 +17,4 @@ in
snowhawk.fish.enable = lib.mkDefault true; snowhawk.fish.enable = lib.mkDefault true;
snowhawk.git.enable = lib.mkDefault true; snowhawk.git.enable = lib.mkDefault true;
snowhawk.lazygit.enable = lib.mkDefault true; snowhawk.lazygit.enable = lib.mkDefault true;
snowhawk.defaultPrograms.enable = lib.mkDefault true;
} }

View File

@ -6,10 +6,12 @@ in
{ {
options.snowhawk.fish = { options.snowhawk.fish = {
enable = lib.mkEnableOption "fish"; enable = lib.mkEnableOption "fish";
macos = lib.mkEnableOption "macos specific tweaks";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.bash = { programs.bash = lib.mkIf (!cfg.macos) {
enable = true; enable = true;
initExtra = '' initExtra = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]] if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
@ -20,6 +22,18 @@ in
''; '';
}; };
programs.zsh = lib.mkIf cfg.macos {
enable = true;
initExtra = ''
if [[ $(${pkgs.procps}/bin/ps $(${pkgs.procps}/bin/ps -p $$ -co "ppid=") -co "comm=") != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
# shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
# exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
exec ${pkgs.fish}/bin/fish
fi
'';
};
programs.fish = { programs.fish = {
enable = true; enable = true;
shellAbbrs = { shellAbbrs = {

View File

@ -9,15 +9,10 @@
enable = true; enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;
}; };
snowhawk.defaultPrograms.enable = false;
snowhawk.ssh.enable = true; snowhawk.ssh.enable = true;
snowhawk.user.username = "val"; snowhawk.user.username = "val";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
];
home.packages = with pkgs; [ home.packages = with pkgs; [
nix-output-monitor nix-output-monitor
(writeShellScriptBin "rebuild" '' (writeShellScriptBin "rebuild" ''

View File

@ -0,0 +1,45 @@
{ pkgs, inputs, lib, ... }:
{
imports = [
../../home/modules
];
snowhawk.neovim = {
enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
};
snowhawk.ssh = {
enable = true;
homeNetwork = true;
};
snowhawk.alacritty = {
enable = true;
macos = true;
};
snowhawk.fish.macos = true;
programs.alacritty.settings = {
font.size = lib.mkForce 16.0;
window.opacity = lib.mkForce 0.94;
colors.primary.background = lib.mkForce "#171717";
};
home.username = "zynh";
home.homeDirectory = "/Users/zynh/";
home.packages = with pkgs; [
nix-output-monitor
(writeShellScriptBin "rebuild" ''
home-manager switch |& nom
'')
go
rustup
fzf
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.stateVersion = "23.11";
}

View File

@ -10,14 +10,9 @@
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;
}; };
snowhawk.ssh.enable = true; snowhawk.ssh.enable = true;
snowhawk.defaultPrograms.enable = false;
snowhawk.user.username = "zynh"; snowhawk.user.username = "zynh";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
];
home.packages = with pkgs; [ home.packages = with pkgs; [
nix-output-monitor nix-output-monitor
(writeShellScriptBin "rebuild" '' (writeShellScriptBin "rebuild" ''

View File

@ -19,6 +19,7 @@ in
lazygit.enable = true; lazygit.enable = true;
dunst.enable = true; dunst.enable = true;
sops.enable = true; sops.enable = true;
defaultPrograms.enable = true;
playerctl.enable = true; playerctl.enable = true;
}; };
snowhawk.ssh = { snowhawk.ssh = {