adhere to nixos systems

This commit is contained in:
2024-09-03 22:24:20 -04:00
parent fac5e52f36
commit 9350ff271f
12 changed files with 108 additions and 97 deletions

View File

@ -1,9 +1,6 @@
{ ... }:
{
{...}: {
programs.atuin = {
enable = true;
enableFishIntegration = true;
};
}
}

View File

@ -9,15 +9,15 @@
p7zip
# utils
bat # a batter cat
lazygit # a git tui that's easy to use
bottom # a better top
ripgrep # recursively searches directories for a regex pattern
jq # A lightweight and flexible command-line JSON processor
yq-go # yaml processer https://github.com/mikefarah/yq
fzf # A command-line fuzzy finder
fh # flake hub command line interface
aria2 # A lightweight multi-protocol & multi-source command-line download utility
bat
lazygit
bottom
ripgrep
jq
yq-go
fzf
fh
aria2
yt-dlp
# misc
@ -41,6 +41,7 @@
nixd
deadnix
alejandra
statix
# productivity
iterm2

View File

@ -1,6 +1,11 @@
{ username, ... }:
{
pkgs,
lib,
userName,
...
}: let
username = userName;
in {
# import sub modules
imports = [
./atuin.nix
@ -15,20 +20,24 @@
# Home Manager needs a bit of information about you and the
# paths it should manage.
home = {
username = username;
homeDirectory = "/Users/${username}";
home = lib.mkMerge [
(lib.mkIf pkgs.stdenv.isDarwin {
homeDirectory = "/Users/${username}";
})
(lib.mkIf pkgs.stdenv.isLinux {
homeDirectory = "/home/${username}";
})
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "24.05";
};
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
stateVersion = "24.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;

View File

@ -1,6 +1,4 @@
{ lib, config, ... }:
{
{...}: {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
@ -11,4 +9,4 @@
};
};
};
}
}

View File

@ -1,10 +1,8 @@
{ lib, config, ... }:
{
{...}: {
programs.eza = {
enable = true;
enableFishIntegration = true;
extraOptions = [
];
};
}
}

View File

@ -1,6 +1,4 @@
{ ... }:
{
{...}: {
programs.lazygit = {
enable = true;

View File

@ -1,9 +1,7 @@
{ lib, config, ... }:
{
{...}: {
programs.neovim = {
enable = true;
defaultEditor = true;
vimAlias = true;
};
}
}

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
programs.fish = {
enable = true;
# initExtra = ''
@ -7,18 +7,18 @@
shellAliases = {
# ls aliases
ls = "eza --color $argv";
la = "eza -l -all --color $argv";
ll = "eza -l --color $argv";
lt = "eza -l --color --git $argv";
ls = "eza --color";
la = "eza -l -all --color";
ll = "eza -l --color";
lt = "eza -l --color --git";
# lazygit alias
lg = "lazygit";
# cat, less, more alias
cat = "bat $argv";
less = "bat $argv";
more = "bat $argv";
cat = "bat";
less = "bat";
more = "bat";
# top alias
top = "btm";
@ -28,28 +28,28 @@
functions = {
fish_greeting = {
body = ''
set memes \
"Crazy? I was crazy once. They locked me in a room. A rubber room. A rubber room with rats. And rats make me crazy." \
"Daddy, chill!" \
"What the hell is even that?!" \
"Road work ahead? Yeah, I sure hope it does!" \
"Look at all those chickens!" \
"I smell like beef" \
"Say, Coloardo - I'M A GIRAFFE" \
"I didn't get no sleep cause of y'all, y'all not gone get any sleep cause of me!" \
"This is the dollar store, how good can it be?" \
"That was legitness" \
"Deez nuts" \
"I wanna be a cowboy baby" \
"Can I get a waffle? Can I please get a waffle?" \
"I'm lesbian. I thought you were American." \
"You gotta give 'em that 'hawk tuah' and spit on that thang!" \
"We don't do that here..."
set memes \
"Crazy? I was crazy once. They locked me in a room. A rubber room. A rubber room with rats. And rats make me crazy." \
"Daddy, chill!" \
"What the hell is even that?!" \
"Road work ahead? Yeah, I sure hope it does!" \
"Look at all those chickens!" \
"I smell like beef" \
"Say, Coloardo - I'M A GIRAFFE" \
"I didn't get no sleep cause of y'all, y'all not gone get any sleep cause of me!" \
"This is the dollar store, how good can it be?" \
"That was legitness" \
"Deez nuts" \
"I wanna be a cowboy baby" \
"Can I get a waffle? Can I please get a waffle?" \
"I'm lesbian. I thought you were American." \
"You gotta give 'em that 'hawk tuah' and spit on that thang!" \
"We don't do that here..."
set choose_meme (random)"%"(count $memes)
set choose_meme $memes[(math $choose_meme"+1")]
set choose_meme (random)"%"(count $memes)
set choose_meme $memes[(math $choose_meme"+1")]
printf (set_color F90)"%s\n" $choose_meme
printf (set_color F90)"%s\n" $choose_meme
'';
onEvent = "fish_greeting";
};

View File

@ -1,9 +1,7 @@
{ lib, config, ... }:
{
{...}: {
programs.starship = {
enable = true;
enableFishIntegration = true;
settings = { };
settings = {};
};
}