1
This commit is contained in:
2022-08-09 00:27:17 +02:00
parent d4dbe62db0
commit 72626a1013
2 changed files with 11 additions and 39 deletions

View File

@ -78,7 +78,6 @@ rec {
in in
formatted; formatted;
# TODO: Module
gtk = { gtk = {
enable = true; enable = true;
@ -167,7 +166,6 @@ rec {
# gcc # nvim needs this # gcc # nvim needs this
# Gnome extensions # Gnome extensions
# TODO: Make a gnome module
# gnome.gnome-tweaks # Disabled since settings should be set declaratively # gnome.gnome-tweaks # Disabled since settings should be set declaratively
gnomeExtensions.appindicator gnomeExtensions.appindicator
gnomeExtensions.blur-my-shell gnomeExtensions.blur-my-shell
@ -203,7 +201,6 @@ rec {
wike # Wikipedia viewer wike # Wikipedia viewer
# Ranger # Ranger
# TODO: Make module out of this
ranger ranger
ueberzug ueberzug
ffmpegthumbnailer ffmpegthumbnailer
@ -284,30 +281,21 @@ rec {
cd = "z"; cd = "z";
cp = "cp -i"; cp = "cp -i";
ls = ls = "exa --color always --group-directories-first -F --git --icons"; # color-ls
"exa --color always --group-directories-first -F --git --icons"; # color-ls lsl = "exa --color always --group-directories-first -F -l --git --icons";
lsl = lsa = "exa --color always --group-directories-first -F -l -a --git --icons";
"exa --color always --group-directories-first -F -l --git --icons"; tre = "exa --color always --group-directories-first -F -T -L 2 ---icons";
lsa =
"exa --color always --group-directories-first -F -l -a --git --icons";
tre =
"exa --color always --group-directories-first -F -T -L 2 ---icons";
mkd = "mkdir -p"; mkd = "mkdir -p";
blk = blk = "lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL | bat";
"lsblk -o NAME,LABEL,UUID,FSTYPE,SIZE,FSUSE%,MOUNTPOINT,MODEL | bat";
fsm = "df -h | bat"; fsm = "df -h | bat";
grp = "grep --color=auto -E"; grp = "grep --color=auto -E";
fzp = fzp = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
"fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
fre = "free -m"; fre = "free -m";
r = r = "ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";
"ranger --choosedir=$HOME/.rangerdir; set LASTDIR (cat $HOME/.rangerdir); cd $LASTDIR";
rsync = "rsync -chavzP --info=progress2"; rsync = "rsync -chavzP --info=progress2";
performance = performance = "sudo cpupower frequency-set -g performance && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1";
"sudo cpupower frequency-set -g performance && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1"; powersave = "sudo cpupower frequency-set -g powersave && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0";
powersave =
"sudo cpupower frequency-set -g powersave && nvidia-settings -a [gpu:0]/GPUPowerMizerMode=0";
wat = "watch -d -c -n -0.5"; wat = "watch -d -c -n -0.5";
dus = "sudo dust -r"; dus = "sudo dust -r";
@ -338,8 +326,7 @@ rec {
league = "sudo sysctl -w abi.vsyscall32=0"; league = "sudo sysctl -w abi.vsyscall32=0";
mp4 = mp4 = "yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
"yt-dlp -f 'bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b' --recode-video mp4"; # the -f options are yt-dlp defaults
mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3"; mp3 = "yt-dlp -f 'ba' --extract-audio --audio-format mp3";
}; };
shellAliases = { shellAliases = {
@ -412,7 +399,6 @@ rec {
vimium vimium
]; ];
# TODO:
profiles = { profiles = {
default = { default = {
id = 0; # 0 is default profile id = 0; # 0 is default profile
@ -473,7 +459,6 @@ rec {
# Reduce search engine noise in the urlbar's completion window. The # Reduce search engine noise in the urlbar's completion window. The
# shortcuts and suggestions will still work, but Firefox won't clutter # shortcuts and suggestions will still work, but Firefox won't clutter
# its UI with reminders that they exist. # its UI with reminders that they exist.
# TODO: Somehow not applied? At least it's not represented in settings
"browser.urlbar.suggest.searches" = true; "browser.urlbar.suggest.searches" = true;
"browser.urlbar.shortcuts.bookmarks" = false; "browser.urlbar.shortcuts.bookmarks" = false;
"browser.urlbar.shortcuts.history" = true; "browser.urlbar.shortcuts.history" = true;
@ -608,7 +593,7 @@ rec {
keys = [ "id_ed25519" ]; keys = [ "id_ed25519" ];
}; };
# TODO: Copy config from Arch dots # TODO: Copy config from Arch dots, also move the entire config folder (to allow ephemereal configs)
kitty = { kitty = {
enable = true; enable = true;
font = { font = {

View File

@ -41,11 +41,6 @@
[ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
''; '';
# Allow unfree packages
# TODO: Can I do that in the flake.nix globally? I already set pkgs there with this config but it's not enough...
# Since we use HomeManager as a module with global pkgs this should also cover user packages
# nixpkgs.config.allowUnfree = true;
# Bootloader/Kernel stuff # Bootloader/Kernel stuff
boot = { boot = {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
@ -137,14 +132,6 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
# Configure keymap in X11
# layout = "us"; # NOTE: Done in host specific config
# xkbVariant = "altgr-intl"; # NOTE: Done in host specific config
# Proprietary graphics drivers
# TODO: Opengl and stuff
# videoDrivers = [ "nvidia" ]; # NOTE: Done in host specific config
# Startx replaces the displaymanager so default (lightdm) isn't used, start to shell # Startx replaces the displaymanager so default (lightdm) isn't used, start to shell
# displayManager.startx.enable = true; # displayManager.startx.enable = true;