From f021800293d23c117506684aaab6dd75f1cc2b34 Mon Sep 17 00:00:00 2001 From: tomoron Date: Sun, 27 Oct 2024 16:05:11 +0100 Subject: [PATCH] remove open ports on desktop, add lm_sensors package to desktop, add condition to bashrc to not output anything if non iteractive --- dotfiles/bashrc | 10 +++++++--- homes/laptop/hyprland.nix | 8 ++++++++ hosts/desktop.nix | 6 ++++-- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 homes/laptop/hyprland.nix diff --git a/dotfiles/bashrc b/dotfiles/bashrc index 5c5681f..6bbbecb 100644 --- a/dotfiles/bashrc +++ b/dotfiles/bashrc @@ -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 vi=nvim alias "copy=xclip -selection c" +alias hl="Hyprland" cat_cp() { cat $@ | xclip -selection c } @@ -18,12 +19,15 @@ cd() { 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 echo -n going to cat ~/.last_directory echo builtin cd "$(cat ~/.last_directory)" fi -export PATH="$HOME/.local/bin:$PATH" -export PATH="$HOME/pyenv/bin:$PATH" -alias tagueule="asusctl profile -P Quiet" diff --git a/homes/laptop/hyprland.nix b/homes/laptop/hyprland.nix new file mode 100644 index 0000000..0e8be6a --- /dev/null +++ b/homes/laptop/hyprland.nix @@ -0,0 +1,8 @@ +{ config, lib, pkgs, ... }: + +{ + monitor= [ + "eDP-1, 1920x1080@120, 0x0, 1" + "HDMI-A-1, 1920x1080@60, auto, auto" + ]; +} diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 03f365f..9a536f7 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -8,9 +8,11 @@ modules/vboxHost.nix ]; + environment.systemPackages = with pkgs; [ + lm_sensors + ]; + networking.hostName = "nixos-fixe"; - networking.firewall.allowedTCPPorts = [ 5900 ]; - networking.firewall.allowedUDPPorts = [ 5900 ]; hardware.cpu.intel.updateMicrocode = true;