From 26fd0bcd3c9d27dbb3d6771553f4b27edc789f6a Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 1 Jul 2023 19:12:43 +0900 Subject: [PATCH] test --- common/dotfiles/bash.nix | 35 +++++++++++++++++++++++++++++++++++ configuration.nix | 32 -------------------------------- 2 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 common/dotfiles/bash.nix diff --git a/common/dotfiles/bash.nix b/common/dotfiles/bash.nix new file mode 100644 index 00000000..cf93fdf7 --- /dev/null +++ b/common/dotfiles/bash.nix @@ -0,0 +1,35 @@ +{ config, pkgs, ... }: { + environment.systemPackages = with pkgs; [ powerline-go ]; + # Configure BASH exports + programs = { + bash = { + enableCompletion = true; + enableLsColors = true; + shellAliases = { + d = "docker"; + dc = "docker-compose"; + de = "docker exec -it"; + ddate = "date +%Y.%m.%d"; + dday = "date +%A"; + cp = "rsync -avr"; + g = "git"; + ga = "git add -A"; + gb = "git branch"; + gc = "git commit"; + gca = "git commit -a"; + gco = "git checkout"; + gd = "git diff"; + gp = "git pull --prune"; + gpu = "git push origin HEAD"; + gs = "git status -sb"; + hs = "home-manager switch"; + ll = "ls -lah"; + rm = "rm -i"; + tdate = "date +%Y.%m.%d..%H.%M"; + ttime = "date +%H.%M"; + nr = "nixos-rebuild"; + }; + }; + }; + +} \ No newline at end of file diff --git a/configuration.nix b/configuration.nix index 482425fe..f481ea8f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -150,38 +150,6 @@ options = "--delete-older-than 7d"; }; - # Configure BASH exports - programs = { - bash = { - enableCompletion = true; - enableLsColors = true; - shellAliases = { - d = "docker"; - dc = "docker-compose"; - de = "docker exec -it"; - ddate = "date +%Y.%m.%d"; - dday = "date +%A"; - cp = "rsync -avr"; - g = "git"; - ga = "git add -A"; - gb = "git branch"; - gc = "git commit"; - gca = "git commit -a"; - gco = "git checkout"; - gd = "git diff"; - gp = "git pull --prune"; - gpu = "git push origin HEAD"; - gs = "git status -sb"; - hs = "home-manager switch"; - ll = "ls -lah"; - rm = "rm -i"; - tdate = "date +%Y.%m.%d..%H.%M"; - ttime = "date +%H.%M"; - nr = "nixos-rebuild"; - }; - }; - }; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave