lkjadslkajdslkj

This commit is contained in:
Peder Bergebakken Sundt 2024-10-31 16:25:35 +01:00
parent 9f42a1ec27
commit 1cc5901241
6 changed files with 54 additions and 25 deletions

View File

@ -18,7 +18,6 @@
#boot.kernelPackages = pkgs.linuxPackages_latest; #boot.kernelPackages = pkgs.linuxPackages_latest;
#hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest; #hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
#hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start #hardware.nvidia.modesetting.enable = false; # makes atom behave, but mpv refuses to start
/**/
# PRIME: (lspci) # PRIME: (lspci)
#hardware.nvidia.prime.intelBusId = "PCI:0:02:0"; #hardware.nvidia.prime.intelBusId = "PCI:0:02:0";
@ -39,25 +38,14 @@
../../../profiles/shell.nix ../../../profiles/shell.nix
#../../../profiles/desktop
#../../../profiles/desktop/gnome # configures gdm
##../../../profiles/desktop/sound/alsa.nix
##../../../profiles/desktop/sound/pulseaudio.nix
#../../../profiles/desktop/sound/pipewire.nix
../../../profiles/domeneshop-dyndns.nix ../../../profiles/domeneshop-dyndns.nix
../../../profiles/known-hosts.nix ../../../profiles/known-hosts.nix
]; ];
services.domeneshop-updater.targets = [ config.networking.fqdn ]; services.domeneshop-updater.targets = [ config.networking.fqdn ];
#networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery
# Networking # Networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# TODO: remove? Move? # TODO: remove? Move?
programs.dconf.enable = true; programs.dconf.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
} }

View File

@ -34,7 +34,7 @@
#nheko #nheko
#fluffychat #fluffychat
libreoffice (pkgs.onlyoffice-desktopeditors or pkgs.libreoffice)
emote emote
normcap # doesn't work on wayland normcap # doesn't work on wayland

View File

@ -147,7 +147,7 @@ with lib.hm.gvariant;
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom13" = { "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom13" = {
binding = "<Shift><Control>Print"; binding = "<Shift><Control>Print";
command = "normcap"; command = "systemd-run --user normcap";
name = "normcap OCR"; name = "normcap OCR";
}; };

View File

@ -4,6 +4,7 @@
# TODO: mod-music # TODO: mod-music
# TODO: vgmstream # TODO: vgmstream
# TODO: 3d # TODO: 3d
# TODO: onlyoffice
let let
mime-map = { mime-map = {

View File

@ -3,7 +3,26 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
#git #git
gh gh
hub #hub
(pkgs.symlinkJoin {
inherit (pkgs.hub) name meta;
paths = [ pkgs.hub ];
postBuild = ''
rm $out/bin/hub
cat <<"EOF" >$out/bin/hub
#!${pkgs.runtimeShell}
# https://hub.github.com/hub.1.html#github-oauth-authentication
if [[ ! -d ~/.config/hub ]]; then
export GITHUB_TOKEN=$(${pkgs.gh}/bin/gh auth token 2>/dev/null)
fi
exec -a "$0" ${pkgs.hub}/bin/hub "$@"
EOF
chmod +x $out/bin/hub
'';
})
tea tea
colordiff colordiff
]; ];

View File

@ -1,4 +1,12 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let
_tmp_func_name = "_tmp_func_Oaw5aifeeniezeiquonaipheNahthae9caik4Rai"; # pwgen ftw
mkArgsAlias = alias: ''${_tmp_func_name}() { ${alias}; unset -f ${_tmp_func_name}; }; ${_tmp_func_name}'';
in
{ {
# TODO: "bind -s 'set completion-ignore-case on'" # TODO: "bind -s 'set completion-ignore-case on'"
programs.bash.enable = true; programs.bash.enable = true;
@ -144,6 +152,19 @@
#home.shellAliases.mv = "mv -i"; #home.shellAliases.mv = "mv -i";
#home.shellAliases.cp = "cp -i"; #home.shellAliases.cp = "cp -i";
home.shellAliases.inom = mkArgsAlias ''nom "$@" --system i686-linux -j0'';
home.shellAliases.inix = mkArgsAlias ''nix "$@" --system i686-linux -j0'';
home.shellAliases.rnom = mkArgsAlias ''nom "$@" --system riscv64-linux -j0'';
home.shellAliases.rnix = mkArgsAlias ''nix "$@" --system riscv64-linux -j0'';
home.shellAliases.fnom = mkArgsAlias ''nom "$@" --system x86_64-freebsd -j0'';
home.shellAliases.fnix = mkArgsAlias ''nix "$@" --system x86_64-freebsd -j0'';
home.shellAliases.anom = mkArgsAlias ''nom "$@" --system aarch64-linux -j0'';
home.shellAliases.anix = mkArgsAlias ''nix "$@" --system aarch64-linux -j0'';
home.shellAliases.dnom = mkArgsAlias ''nom "$@" --system x86_64-darwin -j0'';
home.shellAliases.dnix = mkArgsAlias ''nix "$@" --system x86_64-darwin -j0'';
home.shellAliases.danom = mkArgsAlias ''nom "$@" --system aarch64-darwin -j0'';
home.shellAliases.danix = mkArgsAlias ''nix "$@" --system aarch64-darwin -j0'';
home.shellAliases.inom-build = "nom-build --system i686-linux -j0"; home.shellAliases.inom-build = "nom-build --system i686-linux -j0";
home.shellAliases.inix-build = "nix-build --system i686-linux -j0"; home.shellAliases.inix-build = "nix-build --system i686-linux -j0";
home.shellAliases.rnom-build = "nom-build --system riscv64-linux -j0"; home.shellAliases.rnom-build = "nom-build --system riscv64-linux -j0";