kekl
This commit is contained in:
@ -101,6 +101,7 @@ in
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
|
fish.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
@ -109,20 +110,24 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.fabian = {
|
users = {
|
||||||
isNormalUser = true;
|
users = {
|
||||||
initialPassword = "1601";
|
fabian = {
|
||||||
extraGroups = [
|
isNormalUser = true;
|
||||||
"wheel"
|
initialPassword = "1601";
|
||||||
"docker"
|
extraGroups = [
|
||||||
"audio"
|
"wheel"
|
||||||
"video"
|
"docker"
|
||||||
"dialout"
|
"audio"
|
||||||
"plugdev"
|
"video"
|
||||||
"adbusers"
|
"dialout"
|
||||||
"kvm"
|
"plugdev"
|
||||||
"dialout"
|
"adbusers"
|
||||||
];
|
"kvm"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
sessionVariables = {
|
|
||||||
DEVKITPRO = "/opt/devkitpro";
|
|
||||||
DEVKITPPC = "/opt/devkitpro/devkitPPC";
|
|
||||||
DEVKITA64 = "/opt/devkitpro/devkitA64";
|
|
||||||
DEVKITARM = "/opt/devkitpro/devkitARM";
|
|
||||||
PATH = "/opt/devkitpro/tools/bin:$PATH";
|
|
||||||
};
|
|
||||||
shellAliases = {
|
|
||||||
http = "python3 -m http.server";
|
|
||||||
rm = "rm $@ -v -I";
|
|
||||||
ls = "${pkgs.eza}/bin/eza -l --icons";
|
|
||||||
cp = "cp -rv";
|
|
||||||
mv = "mv -v";
|
|
||||||
mkdir = "mkdir -pv";
|
|
||||||
update = "doas nixos-rebuild switch";
|
|
||||||
};
|
|
||||||
shellOptions = [
|
|
||||||
"histappend"
|
|
||||||
"checkwinsize"
|
|
||||||
"extglob"
|
|
||||||
"globstar"
|
|
||||||
"checkjobs"
|
|
||||||
];
|
|
||||||
initExtra = ''
|
|
||||||
PS1 = "(\u) %"
|
|
||||||
|
|
||||||
eval "$(fzf --bash)"
|
|
||||||
complete -cf doas
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -3,7 +3,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./nvim/default.nix
|
./nvim/default.nix
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./bash.nix
|
./shell.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
|
106
modules/home/nix/shell.nix
Normal file
106
modules/home/nix/shell.nix
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
grc
|
||||||
|
];
|
||||||
|
programs = {
|
||||||
|
fish = {
|
||||||
|
enable = true;
|
||||||
|
generateCompletions = true;
|
||||||
|
interactiveShellInit = ''
|
||||||
|
set -gx DEVKITPRO "/opt/devkitpro";
|
||||||
|
set -gx DEVKITPPC "/opt/devkitpro/devkitPPC";
|
||||||
|
set -gx DEVKITA64 "/opt/devkitpro/devkitA64";
|
||||||
|
set -gx DEVKITARM "/opt/devkitpro/devkitARM";
|
||||||
|
set -gx PATH "/opt/devkitpro/tools/bin:$PATH";
|
||||||
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
g = "git";
|
||||||
|
gc = "git commit";
|
||||||
|
ga = "git add -A";
|
||||||
|
http = "python3 -m http.server";
|
||||||
|
ls = "${pkgs.eza}/bin/eza -la --icons";
|
||||||
|
cp = "cp -rv";
|
||||||
|
mv = "mv -v";
|
||||||
|
mkdir = "mkdir -pv";
|
||||||
|
update = "doas nixos-rebuild switch";
|
||||||
|
};
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "z";
|
||||||
|
src = pkgs.fishPlugins.z.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "sponge";
|
||||||
|
src = pkgs.fishPlugins.sponge.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "pisces";
|
||||||
|
src = pkgs.fishPlugins.pisces.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "fzf-fish";
|
||||||
|
src = pkgs.fishPlugins.fzf-fish.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "hydro";
|
||||||
|
src = pkgs.fishPlugins.hydro.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "grc";
|
||||||
|
src = pkgs.fishPlugins.grc.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "git-abbr";
|
||||||
|
src = pkgs.fishPlugins.git-abbr.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "forgit";
|
||||||
|
src = pkgs.fishPlugins.forgit.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "colored-man-pages";
|
||||||
|
src = pkgs.fishPlugins.colored-man-pages.src;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "bobthefisher";
|
||||||
|
src = pkgs.fishPlugins.bobthefisher.src;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
bash = {
|
||||||
|
enable = false;
|
||||||
|
enableCompletion = true;
|
||||||
|
sessionVariables = {
|
||||||
|
DEVKITPRO = "/opt/devkitpro";
|
||||||
|
DEVKITPPC = "/opt/devkitpro/devkitPPC";
|
||||||
|
DEVKITA64 = "/opt/devkitpro/devkitA64";
|
||||||
|
DEVKITARM = "/opt/devkitpro/devkitARM";
|
||||||
|
PATH = "/opt/devkitpro/tools/bin:$PATH";
|
||||||
|
};
|
||||||
|
shellAliases = {
|
||||||
|
http = "python3 -m http.server";
|
||||||
|
rm = "rm $@ -v -I";
|
||||||
|
ls = "${pkgs.eza}/bin/eza -l --icons";
|
||||||
|
cp = "cp -rv";
|
||||||
|
mv = "mv -v";
|
||||||
|
mkdir = "mkdir -pv";
|
||||||
|
update = "doas nixos-rebuild switch";
|
||||||
|
};
|
||||||
|
shellOptions = [
|
||||||
|
"histappend"
|
||||||
|
"checkwinsize"
|
||||||
|
"extglob"
|
||||||
|
"globstar"
|
||||||
|
"checkjobs"
|
||||||
|
];
|
||||||
|
initExtra = ''
|
||||||
|
PS1="(\u) % "
|
||||||
|
|
||||||
|
eval "$(fzf --bash)"
|
||||||
|
complete -cf doas
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -47,8 +47,8 @@ in
|
|||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi";
|
||||||
installation_mode = "force_installed";
|
installation_mode = "force_installed";
|
||||||
};
|
};
|
||||||
"{9b84b6b4-07c4-4b4b-ba21-394d86f6e9ee}" = {
|
"{f5bcc922-5c09-4ba5-9611-d7931812785c}" = {
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/3954735/black21-3.0.2.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/file/4354513/oxocarbon-1.0.xpi";
|
||||||
installation_mode = "force_installed";
|
installation_mode = "force_installed";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -84,8 +84,8 @@ static const char *termcmd[] = {"alacritty", NULL};
|
|||||||
static const char *dmenucmd[] = {
|
static const char *dmenucmd[] = {
|
||||||
"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1,
|
"dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1,
|
||||||
"-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL};
|
"-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL};
|
||||||
static const char *upvol[] = {"wpctl", "set-sink-volume",
|
static const char *upvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@",
|
||||||
"@DEFAULT_AUDIO_SINK@", "5%-", NULL};
|
"5%+", NULL};
|
||||||
static const char *downvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@",
|
static const char *downvol[] = {"wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@",
|
||||||
"5%-", NULL};
|
"5%-", NULL};
|
||||||
static const char *mutevol[] = {"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@",
|
static const char *mutevol[] = {"wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@",
|
||||||
|
Reference in New Issue
Block a user