WIP: Switch to NixOS #5
4 changed files with 21 additions and 17 deletions
12
config.toml
12
config.toml
|
@ -311,16 +311,25 @@ dotfiles = [
|
||||||
include = ["os_arch", "email", "media", "sway", "gpg"]
|
include = ["os_arch", "email", "media", "sway", "gpg"]
|
||||||
dotfiles = ["d_systemd"]
|
dotfiles = ["d_systemd"]
|
||||||
|
|
||||||
|
[profiles.Mirkwood.variables]
|
||||||
|
wayland = true
|
||||||
|
|
||||||
[profiles.Moria]
|
[profiles.Moria]
|
||||||
include = ["os_arch", "media", "gpg"]
|
include = ["os_arch", "media", "gpg"]
|
||||||
dotfiles = ["f_zprofile"]
|
dotfiles = ["f_zprofile"]
|
||||||
|
|
||||||
|
[profiles.Moria.variables]
|
||||||
|
wayland = true
|
||||||
|
|
||||||
[profiles.Gondor]
|
[profiles.Gondor]
|
||||||
include = ["os_arch"]
|
include = ["os_arch"]
|
||||||
|
|
||||||
[profiles.mko-laptop]
|
[profiles.mko-laptop]
|
||||||
include = ["os_ubuntu", "media", "gpg"]
|
include = ["os_ubuntu", "media", "gpg"]
|
||||||
|
|
||||||
|
[profiles.mko-laptop.variables]
|
||||||
|
wayland = false
|
||||||
|
|
||||||
[profiles.Isengard]
|
[profiles.Isengard]
|
||||||
include = ["os_termux"]
|
include = ["os_termux"]
|
||||||
|
|
||||||
|
@ -330,6 +339,9 @@ include = ["os_arch"]
|
||||||
[profiles.TakamakiPC]
|
[profiles.TakamakiPC]
|
||||||
include = ["os_arch"]
|
include = ["os_arch"]
|
||||||
|
|
||||||
|
[profiles.TakamakiPC.variables]
|
||||||
|
wayland = false
|
||||||
|
|
||||||
[profiles.localhost]
|
[profiles.localhost]
|
||||||
include = ["os_arch"]
|
include = ["os_arch"]
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,10 @@ vo=gpu
|
||||||
hwdec=vaapi
|
hwdec=vaapi
|
||||||
hwdec-codecs=all
|
hwdec-codecs=all
|
||||||
|
|
||||||
{%@@ if profile == "Mirkwood" or profile == "Moria" @@%}
|
{%@@ if wayland @@%}
|
||||||
gpu-context=wayland
|
gpu-context=wayland
|
||||||
{%@@ elif profile == "mko-laptop" @@%}
|
{%@@ endif @@%}
|
||||||
|
{%@@ if profile == "mko-laptop" @@%}
|
||||||
script=~/.lib/mpris.so
|
script=~/.lib/mpris.so
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
||||||
|
@ -107,12 +108,3 @@ ytdl-format="bestvideo[height<=720]+bestaudio/best[height<=720]"
|
||||||
ytdl-format="bestvideo[height<=2160]+bestaudio/best[height<=2160]"
|
ytdl-format="bestvideo[height<=2160]+bestaudio/best[height<=2160]"
|
||||||
[best]
|
[best]
|
||||||
ytdl-format="bestvideo+bestaudio"
|
ytdl-format="bestvideo+bestaudio"
|
||||||
|
|
||||||
|
|
||||||
{%@@ if profile == "Mirkwood" @@%}
|
|
||||||
# Vulkan hwdec profile
|
|
||||||
[vulkan]
|
|
||||||
gpu-api=vulkan
|
|
||||||
gpu-context=waylandvk
|
|
||||||
hwdec=vaapi-copy
|
|
||||||
{%@@ endif @@%}
|
|
||||||
|
|
|
@ -39,12 +39,12 @@ zinit ice lucid atinit'zpcompinit'
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
zinit light zdharma-continuum/fast-syntax-highlighting
|
||||||
|
|
||||||
# use fzf with zsh
|
# use fzf with zsh
|
||||||
{%@@ if profile == "mko-laptop" @@%}
|
{%@@ if os == "arch" @@%}
|
||||||
# Source from home directory since mko-laptop is ubuntu and it has an
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
source /usr/share/fzf/completion.zsh
|
||||||
|
{%@@ elif os == "ubuntu" @@%}
|
||||||
|
# Source from home directory since ubuntu has
|
||||||
# old version of FZF in it's repositories
|
# old version of FZF in it's repositories
|
||||||
source ~/Software/fzf/shell/key-bindings.zsh
|
source ~/Software/fzf/shell/key-bindings.zsh
|
||||||
source ~/Software/fzf/shell/completion.zsh
|
source ~/Software/fzf/shell/completion.zsh
|
||||||
{%@@ else @@%}
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
|
||||||
source /usr/share/fzf/completion.zsh
|
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
|
@ -118,7 +118,7 @@ alias i='iwctl station wlan0'
|
||||||
cpufreq() { watch -n 1 eval "cat /proc/cpuinfo | grep MHz" }
|
cpufreq() { watch -n 1 eval "cat /proc/cpuinfo | grep MHz" }
|
||||||
|
|
||||||
# dotdrop
|
# dotdrop
|
||||||
dotdrop() { source $DOTREPO/secrets/secrets && $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config.toml $@ }
|
dotdrop() { source $DOTREPO/secrets/secrets && $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config.toml {%@@ if profile == "Isengard" @@%} -p isengard{%@@ endif @@%}$@ }
|
||||||
sdotdrop() { source $DOTREPO/secrets/secrets && sudo -E $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config-root.toml $@ }
|
sdotdrop() { source $DOTREPO/secrets/secrets && sudo -E $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config-root.toml $@ }
|
||||||
updatesecrets() { bash $DOTREPO/secrets/secrets.sh; chmod 600 $DOTREPO/secrets/secrets }
|
updatesecrets() { bash $DOTREPO/secrets/secrets.sh; chmod 600 $DOTREPO/secrets/secrets }
|
||||||
compdef _dotdrop-completion.zsh sdotdrop
|
compdef _dotdrop-completion.zsh sdotdrop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue