Compare commits

..

No commits in common. "64eb89235d395f711e8e3a5d8e4232d4a57d0900" and "97c6c2019397a969d886c11b3474d120658a5bc9" have entirely different histories.

6 changed files with 6 additions and 50 deletions

View File

@ -9,7 +9,7 @@ setup-pulseaudio:
# - use lsblk -o NAME,UUID to get UUID # - use lsblk -o NAME,UUID to get UUID
install-rm-keyfile: install-rm-keyfile:
sudo cp ./base/rm-keyfile.service /etc/systemd/system sudo cp ./base/rm-keyfile.service /etc/systemd/system
sudo systemctl enable rm-keyfile.service sudo systemctl daemon-reload
install-pamd: install-pamd:
drv=$$(nix-instantiate -E '((import ./pkgs.nix).stable {}).i3lock'); \ drv=$$(nix-instantiate -E '((import ./pkgs.nix).stable {}).i3lock'); \

View File

@ -50,6 +50,7 @@
pkgs.cbatticon pkgs.cbatticon
pkgs.phwmon pkgs.phwmon
pkgs.castor
pkgs2305.libreoffice pkgs2305.libreoffice
pkgs.gimp pkgs.gimp
pkgs.inkscape pkgs.inkscape
@ -73,8 +74,6 @@
awesome = pkgs.writeScriptBin "awesome" '' awesome = pkgs.writeScriptBin "awesome" ''
#!${pkgs.bash}/bin/bash #!${pkgs.bash}/bin/bash
set -e -x
export BROWSER=${browser}/bin/browser export BROWSER=${browser}/bin/browser
# Turn off powersaving (fuck the environment) # Turn off powersaving (fuck the environment)
@ -99,7 +98,7 @@
# Init awesome # Init awesome
data_dir="$HOME/.local/share/awesome"; data_dir="$HOME/.local/share/awesome";
mkdir -p "$data_dir" mkdir -p "$dataDir"
log_dir="$data_dir"/logs log_dir="$data_dir"/logs
mkdir -p $log_dir mkdir -p $log_dir

View File

@ -48,8 +48,6 @@ in rec {
pkgs.gawk pkgs.gawk
pkgs.tree pkgs.tree
pkgs.pv pkgs.pv
pkgs.less
pkgs.tmux
git git
pkgs.mercurial pkgs.mercurial
@ -71,6 +69,8 @@ in rec {
pkgs.sshfs pkgs.sshfs
pkgs.fuse3 pkgs.fuse3
pkgs.tmux
pkgs.ncdu pkgs.ncdu
pkgs.htop pkgs.htop
pkgs.jnettop pkgs.jnettop
@ -91,7 +91,6 @@ in rec {
zsh zsh
((import ./alacritty) { inherit config zsh; }).alacritty ((import ./alacritty) { inherit config zsh; }).alacritty
((import ./awesome) { inherit config; }).awesome ((import ./awesome) { inherit config; }).awesome
((import ./x) { inherit config; }).startx
]; ];
}; };

View File

@ -1,41 +0,0 @@
{
config,
}: rec {
pkgs = (import ../pkgs.nix).stable {};
innerEnv = pkgs.buildEnv {
name = "x-inner-env";
paths = [
pkgs.xorg.xorgserver
pkgs.xorg.xinit
pkgs.xorg.xauth
pkgs.xorg.xset
#pkgs.xorg.xf86inputevdev
pkgs.xorg.xf86inputlibinput
(pkgs.runCommand "xorg-conf-inner" {} ''
mkdir -p "$out"/share/X11/xorg.conf.d/
cp ${./xorg.conf} "$out"/share/X11/xorg.conf.d/99-loadout.conf
'')
];
};
conf = pkgs.runCommand "xorg-conf" {} ''
cat >>"$out" <<EOF
Section "Files"
ModulePath "${innerEnv}/lib/xorg/modules"
EndSection
EOF
for f in $(ls ${innerEnv}/share/X11/xorg.conf.d | sort); do
cat ${innerEnv}/share/X11/xorg.conf.d/"$f" >> "$out"
done
'';
startx = pkgs.writeShellScriptBin "startx" ''
export XORGCONFIG=${conf}
export PATH=${innerEnv}/bin:$PATH
exec startx
'';
}

View File

@ -25,8 +25,6 @@
}; };
zshrc = pkgs.writeTextDir ".zshrc" '' zshrc = pkgs.writeTextDir ".zshrc" ''
# Import before anything else, so that we have the full PATH available for everything following
. ${pkgs.nix}/etc/profile.d/nix.sh
# oh-my-zsh # oh-my-zsh
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
@ -46,6 +44,7 @@
. ${./zshrc} . ${./zshrc}
. ${./aliases} . ${./aliases}
. ${pkgs.nix}/etc/profile.d/nix.sh
''; '';
zsh = pkgs.writeScriptBin "zsh" '' zsh = pkgs.writeScriptBin "zsh" ''