Add more aliases
This commit is contained in:
parent
7449a8bd75
commit
ce81f4fef6
4 changed files with 39 additions and 21 deletions
33
common.nix
33
common.nix
|
@ -22,34 +22,49 @@
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
etc = {
|
etc = {
|
||||||
"programs.sqlite".source = inputs.programsdb.packages.${pkgs.system}.programs-sqlite;
|
"programs.sqlite".source = inputs.programsdb.packages.${pkgs.system}.programs-sqlite;
|
||||||
"backup".source = self;
|
"backup".source = self;
|
||||||
};
|
};
|
||||||
shells = [pkgs.fish];
|
shells = [pkgs.fish];
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
free = "free -h";
|
# Utility
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
|
rm = "rmtrash";
|
||||||
|
free = "free -h";
|
||||||
|
ping = "prettyping";
|
||||||
|
shutdown = "shutdown now";
|
||||||
|
ls = "exa -a --color=always --group-directories-first --icons";
|
||||||
|
|
||||||
# NixOS Helper Aliases
|
# Git
|
||||||
config = "$EDITOR ~/.config/nixos/$(hostname)/configuration.nix";
|
clone = "gh repo clone";
|
||||||
|
create = "gh repo create";
|
||||||
|
|
||||||
|
push = "git push";
|
||||||
|
commit = "git add -A && git commit -am";
|
||||||
|
|
||||||
|
# NixOS
|
||||||
|
garbage = "sudo nix-collect-garbage -d";
|
||||||
flake = "$EDITOR ~/.config/nixos/flake.nix";
|
flake = "$EDITOR ~/.config/nixos/flake.nix";
|
||||||
common = "$EDITOR ~/.config/nixos/common.nix";
|
common = "$EDITOR ~/.config/nixos/common.nix";
|
||||||
stylix = "$EDITOR ~/.config/nixos/$(hostname)/stylix.nix";
|
|
||||||
home-manager = "$EDITOR ~/.config/nixos/$(hostname)/home-manager.nix";
|
|
||||||
format = "cd ~/.config/nixos/ && nix fmt; cd -";
|
format = "cd ~/.config/nixos/ && nix fmt; cd -";
|
||||||
|
stylix = "$EDITOR ~/.config/nixos/$(hostname)/stylix.nix";
|
||||||
rebuild = "sudo nixos-rebuild switch --flake ~/.config/nixos/#";
|
rebuild = "sudo nixos-rebuild switch --flake ~/.config/nixos/#";
|
||||||
garbage = "sudo nix-collect-garbage -d";
|
config = "$EDITOR ~/.config/nixos/$(hostname)/configuration.nix";
|
||||||
|
home-manager = "$EDITOR ~/.config/nixos/$(hostname)/home-manager.nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
|
exa
|
||||||
micro
|
micro
|
||||||
|
rmtrash
|
||||||
|
prettyping
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
time.timeZone = "America/Toronto";
|
time.timeZone = "America/Toronto";
|
||||||
i18n.defaultLocale = "en_CA.UTF-8";
|
i18n.defaultLocale = "en_CA.UTF-8";
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
security.rtkit.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,10 @@
|
||||||
system = hostname:
|
system = hostname:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {inherit inputs; inherit self;};
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
inherit self;
|
||||||
|
};
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
"${self}/${hostname}/configuration.nix"
|
"${self}/${hostname}/configuration.nix"
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
theme = "TwoDark";
|
theme = "TwoDark";
|
||||||
italic-text = "always";
|
italic-text = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,10 +92,10 @@
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = pkgs.symlinkJoin {
|
# package = pkgs.symlinkJoin {
|
||||||
# name = pkgs.steam.name;
|
# name = pkgs.steam.name;
|
||||||
# paths = [pkgs.steam];
|
# paths = [pkgs.steam];
|
||||||
# buildInputs = [pkgs.makeWrapper];
|
# buildInputs = [pkgs.makeWrapper];
|
||||||
# postBuild = ''wrapProgram $out/bin/steam --add-flags "-gamepadui"'';
|
# postBuild = ''wrapProgram $out/bin/steam --add-flags "-gamepadui"'';
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
fish.interactiveShellInit = "neowofetch";
|
fish.interactiveShellInit = "neowofetch";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue