remove open ports on desktop, add lm_sensors package to desktop, add condition to bashrc to not output anything if non iteractive

This commit is contained in:
2024-10-27 16:05:11 +01:00
parent 78fe6c7521
commit f021800293
3 changed files with 19 additions and 5 deletions

View File

@ -5,6 +5,7 @@ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quo
alias vim=nvim alias vim=nvim
alias vi=nvim alias vi=nvim
alias "copy=xclip -selection c" alias "copy=xclip -selection c"
alias hl="Hyprland"
cat_cp() { cat_cp() {
cat $@ | xclip -selection c cat $@ | xclip -selection c
} }
@ -18,12 +19,15 @@ cd() {
echo -n "$PWD" > ~/.last_directory echo -n "$PWD" > ~/.last_directory
} }
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/pyenv/bin:$PATH"
alias tagueule="asusctl profile -P Quiet"
[ -z "${PS1:-}" ] && return
if [ -f ~/.last_directory ];then if [ -f ~/.last_directory ];then
echo -n going to echo -n going to
cat ~/.last_directory cat ~/.last_directory
echo echo
builtin cd "$(cat ~/.last_directory)" builtin cd "$(cat ~/.last_directory)"
fi fi
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/pyenv/bin:$PATH"
alias tagueule="asusctl profile -P Quiet"

View File

@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
monitor= [
"eDP-1, 1920x1080@120, 0x0, 1"
"HDMI-A-1, 1920x1080@60, auto, auto"
];
}

View File

@ -8,9 +8,11 @@
modules/vboxHost.nix modules/vboxHost.nix
]; ];
environment.systemPackages = with pkgs; [
lm_sensors
];
networking.hostName = "nixos-fixe"; networking.hostName = "nixos-fixe";
networking.firewall.allowedTCPPorts = [ 5900 ];
networking.firewall.allowedUDPPorts = [ 5900 ];
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;