Compare commits
9 Commits
cfdb483ff5
...
4dad83e4ae
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 4dad83e4ae | |
Zynh Ludwig | ac2c989dbb | |
Zynh Ludwig | c4724007d3 | |
Zynh Ludwig | 716cf3a006 | |
Zynh Ludwig | 123b5740c2 | |
Zynh Ludwig | f47a53c6b2 | |
Zynh Ludwig | ca830c5379 | |
Zynh Ludwig | 1efb42d2f5 | |
Zynh Ludwig | 98555351f3 |
|
@ -94,5 +94,13 @@
|
|||
./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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@ let
|
|||
in
|
||||
{
|
||||
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 {
|
||||
|
@ -14,6 +15,8 @@ in
|
|||
settings = {
|
||||
window = {
|
||||
opacity = 0.98;
|
||||
decorations = lib.mkIf cfg.macos "buttonless";
|
||||
option_as_alt = lib.mkIf cfg.macos "Both";
|
||||
};
|
||||
colors = {
|
||||
primary.background = "#050505";
|
||||
|
|
|
@ -17,5 +17,4 @@ in
|
|||
snowhawk.fish.enable = lib.mkDefault true;
|
||||
snowhawk.git.enable = lib.mkDefault true;
|
||||
snowhawk.lazygit.enable = lib.mkDefault true;
|
||||
snowhawk.defaultPrograms.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
|
@ -6,10 +6,12 @@ in
|
|||
{
|
||||
options.snowhawk.fish = {
|
||||
enable = lib.mkEnableOption "fish";
|
||||
|
||||
macos = lib.mkEnableOption "macos specific tweaks";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.bash = {
|
||||
programs.bash = lib.mkIf (!cfg.macos) {
|
||||
enable = true;
|
||||
initExtra = ''
|
||||
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 = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
|
|
|
@ -9,15 +9,10 @@
|
|||
enable = true;
|
||||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
snowhawk.defaultPrograms.enable = false;
|
||||
snowhawk.ssh.enable = true;
|
||||
|
||||
snowhawk.user.username = "val";
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nix-output-monitor
|
||||
(writeShellScriptBin "rebuild" ''
|
||||
|
|
|
@ -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";
|
||||
}
|
|
@ -10,14 +10,9 @@
|
|||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
snowhawk.ssh.enable = true;
|
||||
snowhawk.defaultPrograms.enable = false;
|
||||
|
||||
snowhawk.user.username = "zynh";
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nix-output-monitor
|
||||
(writeShellScriptBin "rebuild" ''
|
||||
|
|
|
@ -19,6 +19,7 @@ in
|
|||
lazygit.enable = true;
|
||||
dunst.enable = true;
|
||||
sops.enable = true;
|
||||
defaultPrograms.enable = true;
|
||||
playerctl.enable = true;
|
||||
};
|
||||
snowhawk.ssh = {
|
||||
|
|
Loading…
Reference in New Issue