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, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
let
|
||||||
|
sshSigningKey = builtins.readFile ./ssh-signing-key.pub;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.lazyvim.homeManagerModules.default
|
inputs.lazyvim.homeManagerModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = import ../features/aliases.nix { inherit pkgs; };
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg =
|
xdg =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
@@ -184,7 +170,7 @@
|
|||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
|
|
||||||
signing = {
|
signing = {
|
||||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5+RJOhvamBpEptCRv90E+8bVWKn6Mep61wDpPYgKP3 floturcocantsee@daguerro.net";
|
key = sshSigningKey;
|
||||||
signByDefault = true;
|
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";
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
wget
|
wget
|
||||||
|
|||||||
@@ -427,20 +427,7 @@
|
|||||||
(callPackage ../../packages/looking-glass-client/package.nix { })
|
(callPackage ../../packages/looking-glass-client/package.nix { })
|
||||||
];
|
];
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
sessionVariables = rec {
|
sessionVariables = rec {
|
||||||
XDG_CACHE_HOME = "$HOME/.cache";
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
|||||||
@@ -192,16 +192,7 @@
|
|||||||
))
|
))
|
||||||
];
|
];
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
sessionVariables = rec {
|
sessionVariables = rec {
|
||||||
XDG_CACHE_HOME = "$HOME/.cache";
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
|||||||
Reference in New Issue
Block a user