misc: update and refactor

This commit is contained in:
Gabriel Arazas 2022-08-13 08:31:09 +08:00
parent 99a241e686
commit 08160eb827
6 changed files with 56 additions and 32 deletions

View File

@ -78,7 +78,7 @@
# The order here is important(?). # The order here is important(?).
overlays = [ overlays = [
# Put my custom packages to be available. # Put my custom packages to be available.
(final: prev: import ./pkgs { pkgs = prev; }) self.overlays.default
# Putting a list for inputs without overlays. # Putting a list for inputs without overlays.
(final: prev: { (final: prev: {
@ -134,6 +134,8 @@
inputs.guix-overlay.nixosModules.guix-binary inputs.guix-overlay.nixosModules.guix-binary
]; ];
environment.extraOutputsToInstall = [ "doc" "devdoc" "info" ];
# Bleeding edge, baybee! # Bleeding edge, baybee!
nix.package = pkgs.nixUnstable; nix.package = pkgs.nixUnstable;

View File

@ -22,7 +22,7 @@ rec {
home.homeDirectory = homeDirectory; home.homeDirectory = homeDirectory;
} }
(lib.getUser "home-manager" user) (getUser "home-manager" user)
]; ];
}; };
users.users."${user}" = defaultUserConfig // settings // absoluteOverrides; users.users."${user}" = defaultUserConfig // settings // absoluteOverrides;

View File

@ -17,6 +17,7 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
aseprite # Pixel art wannabe tool. aseprite # Pixel art wannabe tool.
blender # 3D modelling wannabe tool. blender # 3D modelling wannabe tool.
emulsion-palette # Manage your color palettes.
inkscape # Illustration wannabe tool. inkscape # Illustration wannabe tool.
gimp # Photo editing wannabe tool. gimp # Photo editing wannabe tool.
krita # Digital art wannabe tool. krita # Digital art wannabe tool.

View File

@ -44,6 +44,15 @@ in {
]; ];
bashrcExtra = '' bashrcExtra = ''
function f() { function f() {
dir=''${1:-$PWD}
dest=$(${pkgs.fd}/bin/fd --type directory --ignore-vcs --base-directory "$dir" \
| ${pkgs.fzf}/bin/fzf --prompt "Go to directory ")
destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dir/$dest")
[ "$dest" ] && cd "$destPrime"
}
function fh() {
dir=''${1:-$PWD} dir=''${1:-$PWD}
dest=$(${pkgs.fd}/bin/fd --type directory --hidden --ignore-vcs --base-directory "$dir" \ dest=$(${pkgs.fd}/bin/fd --type directory --hidden --ignore-vcs --base-directory "$dir" \
| ${pkgs.fzf}/bin/fzf --prompt "Go to directory ") | ${pkgs.fzf}/bin/fzf --prompt "Go to directory ")
@ -53,6 +62,19 @@ in {
} }
function ff() { function ff() {
dir=''${1:-$PWD}
dest=$(${pkgs.fd}/bin/fd --ignore-vcs --base-directory "$dir" \
| ${pkgs.fzf}/bin/fzf --prompt "Open file ")
destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dir/$dest")
if [ -d "$destPrime" ]; then
[ "$dest" ] && cd "$destPrime";
else
[ "$dest" ] && ${pkgs.xdg-utils}/bin/xdg-open "$destPrime";
fi
}
function ffh() {
dir=''${1:-$PWD} dir=''${1:-$PWD}
dest=$(${pkgs.fd}/bin/fd --hidden --ignore-vcs --base-directory "$dir" \ dest=$(${pkgs.fd}/bin/fd --hidden --ignore-vcs --base-directory "$dir" \
| ${pkgs.fzf}/bin/fzf --prompt "Open file ") | ${pkgs.fzf}/bin/fzf --prompt "Open file ")

View File

@ -86,11 +86,8 @@ in {
virt-manager virt-manager
]; ];
# Enable podman just as my main container runtime or something. # Enable Docker just as my main container runtime or something.
virtualisation.podman = { virtualisation.docker.enable = true;
enable = true;
dockerCompat = true;
};
# Enable libvirt for muh qemu. # Enable libvirt for muh qemu.
virtualisation.libvirtd = { virtualisation.libvirtd = {

View File

@ -44,6 +44,8 @@ in {
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
}; };
programs.extra-container.enable = true;
# Enable font-related options for more smoother and consistent experience. # Enable font-related options for more smoother and consistent experience.
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;