features/aliases: deduplicated aliases across several files.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
ff =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then "clear;fastfetch" else "clear;fastfetch --logo nixos2";
|
||||
|
||||
ffw =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"clear;fastfetch;printf '\n';weather kmco"
|
||||
else
|
||||
"clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
|
||||
linuxAliases =
|
||||
if pkgs.stdenv.hostPlatform.isLinux then
|
||||
{
|
||||
nb = "nix-build";
|
||||
nix-rebuild = "sudo nixos-rebuild switch";
|
||||
}
|
||||
else
|
||||
{ };
|
||||
in
|
||||
{
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
gs = "git status";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gpll = "git pull";
|
||||
gpsh = "git push";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
inherit ff ffw;
|
||||
}
|
||||
// linuxAliases
|
||||
+5
-19
@@ -1,27 +1,13 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
sshSigningKey = builtins.readFile ./ssh-signing-key.pub;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.lazyvim.homeManagerModules.default
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
gs = "git status";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gpll = "git pull";
|
||||
gpsh = "git push";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
ff =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then "clear;fastfetch" else "clear;fastfetch --logo nixos2";
|
||||
ffw =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"clear;fastfetch;printf '\n';weather kmco"
|
||||
else
|
||||
"clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
};
|
||||
home.shellAliases = import ../features/aliases.nix { inherit pkgs; };
|
||||
|
||||
xdg =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
@@ -184,7 +170,7 @@
|
||||
lfs.enable = true;
|
||||
|
||||
signing = {
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5+RJOhvamBpEptCRv90E+8bVWKn6Mep61wDpPYgKP3 floturcocantsee@daguerro.net";
|
||||
key = sshSigningKey;
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5+RJOhvamBpEptCRv90E+8bVWKn6Mep61wDpPYgKP3 floturcocantsee@daguerro.net
|
||||
+1
-13
@@ -57,19 +57,7 @@
|
||||
XDG_STATE_HOME = "$HOME/.local/state";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
gs = "git status";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gpll = "git pull";
|
||||
gpsh = "git push";
|
||||
ff = "clear;fastfetch --logo nixos2";
|
||||
ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
};
|
||||
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
wget
|
||||
|
||||
@@ -427,20 +427,7 @@
|
||||
(callPackage ../../packages/looking-glass-client/package.nix { })
|
||||
];
|
||||
|
||||
shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
gs = "git status";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gpll = "git pull";
|
||||
gpsh = "git push";
|
||||
ff = "clear;fastfetch --logo nixos2";
|
||||
ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
nix-rebuild = "sudo nixos-rebuild switch";
|
||||
};
|
||||
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||
|
||||
sessionVariables = rec {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
|
||||
@@ -192,16 +192,7 @@
|
||||
))
|
||||
];
|
||||
|
||||
shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
ff = "clear;fastfetch --logo nixos2";
|
||||
ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
nb = "nix-build";
|
||||
nix-rebuild = "sudo nixos-rebuild switch";
|
||||
};
|
||||
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||
|
||||
sessionVariables = rec {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
|
||||
Reference in New Issue
Block a user