1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

tests: implement auto importing for modules

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-06-22 20:35:57 -05:00
parent 4fca600cb1
commit 06c1392ca8
275 changed files with 752 additions and 573 deletions

View file

@ -150,7 +150,6 @@ let
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
isLinux = pkgs.stdenv.hostPlatform.isLinux;
in
import nmtSrc {
inherit lib pkgs modules;
@ -158,373 +157,71 @@ import nmtSrc {
"home"
"activationPackage"
];
tests = builtins.foldl' (a: b: a // (import b)) { } (
[
# keep-sorted start case=no numeric=yes
./lib/generators
./lib/types
./modules/files
./modules/home-environment
./modules/misc/fontconfig
./modules/misc/manual
./modules/misc/nix
./modules/misc/specialisation
./modules/misc/xdg
./modules/programs/aerc
./modules/programs/aichat
./modules/programs/alacritty
./modules/programs/alot
./modules/programs/antidote
./modules/programs/aria2
./modules/programs/atuin
./modules/programs/autojump
./modules/programs/bacon
./modules/programs/bash
./modules/programs/bat
./modules/programs/borgmatic
./modules/programs/bottom
./modules/programs/broot
./modules/programs/browserpass
./modules/programs/btop
./modules/programs/carapace
./modules/programs/cava
./modules/programs/clock-rs
./modules/programs/cmus
./modules/programs/codex
./modules/programs/comodoro
./modules/programs/darcs
./modules/programs/dircolors
./modules/programs/direnv
./modules/programs/earthly
./modules/programs/emacs
./modules/programs/eza
./modules/programs/fastfetch
./modules/programs/feh
./modules/programs/firefox
./modules/programs/firefox/firefox.nix
./modules/programs/firefox/floorp.nix
./modules/programs/firefox/librewolf.nix
./modules/programs/fish
./modules/programs/gallery-dl
./modules/programs/gh
./modules/programs/gh-dash
./modules/programs/ghostty
./modules/programs/git
./modules/programs/git-cliff
./modules/programs/git-credential-oauth
./modules/programs/git-worktree-switcher
./modules/programs/go
./modules/programs/gpg
./modules/programs/gradle
./modules/programs/granted
./modules/programs/helix
./modules/programs/himalaya
./modules/programs/htop
./modules/programs/hwatch
./modules/programs/hyfetch
./modules/programs/i3status
./modules/programs/inori
./modules/programs/irssi
./modules/programs/joplin-desktop
./modules/programs/jqp
./modules/programs/jujutsu
./modules/programs/k9s
./modules/programs/kakoune
./modules/programs/keepassxc
./modules/programs/khal
./modules/programs/khard
./modules/programs/kitty
./modules/programs/kubecolor
./modules/programs/lapce
./modules/programs/lazydocker
./modules/programs/lazysql
./modules/programs/ledger
./modules/programs/less
./modules/programs/lesspipe
./modules/programs/lf
./modules/programs/lieer
./modules/programs/lsd
./modules/programs/man
./modules/programs/mbsync
./modules/programs/mc
./modules/programs/meli
./modules/programs/mergiraf
./modules/programs/micro
./modules/programs/mise
./modules/programs/mods
./modules/programs/mpv
./modules/programs/mu
./modules/programs/mujmap
./modules/programs/ncmpcpp
./modules/programs/ne
./modules/programs/neomutt
./modules/programs/neovide
./modules/programs/neovim
./modules/programs/newsboat
./modules/programs/nheko
./modules/programs/nix-index
./modules/programs/nix-init
./modules/programs/nix-your-shell
./modules/programs/nnn
./modules/programs/numbat
./modules/programs/nushell
./modules/programs/nyxt
./modules/programs/oh-my-posh
./modules/programs/onlyoffice
./modules/programs/openstackclient
./modules/programs/pandoc
./modules/programs/papis
./modules/programs/pay-respects
./modules/programs/pet
./modules/programs/pgcli
./modules/programs/pistol
./modules/programs/pls
./modules/programs/poetry
./modules/programs/powerline-go
./modules/programs/pubs
./modules/programs/pyenv
./modules/programs/qcal
./modules/programs/qutebrowser
./modules/programs/ranger
./modules/programs/readline
./modules/programs/rio
./modules/programs/ripgrep
./modules/programs/ripgrep-all
./modules/programs/rmpc
./modules/programs/ruff
./modules/programs/sagemath
./modules/programs/sapling
./modules/programs/sbt
./modules/programs/scmpuff
./modules/programs/senpai
./modules/programs/sesh
./modules/programs/sftpman
./modules/programs/sioyek
./modules/programs/sm64ex
./modules/programs/smug
./modules/programs/spotify-player
./modules/programs/ssh
./modules/programs/starship
./modules/programs/streamlink
./modules/programs/superfile
./modules/programs/taskwarrior
./modules/programs/tealdeer
./modules/programs/television
./modules/programs/tex-fmt
./modules/programs/texlive
./modules/programs/thefuck
./modules/programs/thunderbird
./modules/programs/tmate
./modules/programs/tmux
./modules/programs/topgrade
./modules/programs/translate-shell
./modules/programs/uv
./modules/programs/vifm
./modules/programs/vim-vint
./modules/programs/visidata
./modules/programs/vscode
./modules/programs/wallust
./modules/programs/watson
./modules/programs/waveterm
./modules/programs/wezterm
./modules/programs/yazi
./modules/programs/zed-editor
./modules/programs/zellij
./modules/programs/zk
./modules/programs/zplug
./modules/programs/zsh
./modules/services/gpg-agent
./modules/services/syncthing/common
./modules/xresources
# keep-sorted end
]
++ lib.optionals isDarwin [
# keep-sorted start case=no numeric=yes
./modules/launchd
./modules/programs/aerospace
./modules/programs/element-desktop/darwin.nix
./modules/programs/sketchybar
./modules/services/borgmatic-darwin
./modules/services/emacs-darwin
./modules/services/espanso-darwin
./modules/services/git-sync-darwin
./modules/services/home-manager-auto-expire-darwin
./modules/services/imapnotify-darwin
./modules/services/jankyborders
./modules/services/macos-remap-keys
./modules/services/nix-gc-darwin
./modules/services/ollama/darwin
./modules/services/skhd
./modules/services/yubikey-agent-darwin
./modules/targets-darwin
# keep-sorted end
]
++ lib.optionals isLinux [
# keep-sorted start case=no numeric=yes
./modules/config/home-cursor
./modules/config/i18n
./modules/dbus
./modules/i18n/input-method
./modules/misc/debug
./modules/misc/editorconfig
./modules/misc/gtk
./modules/misc/numlock
./modules/misc/pam
./modules/misc/qt
./modules/misc/xdg/linux.nix
./modules/misc/xsession
./modules/programs/abook
./modules/programs/anyrun
./modules/programs/autorandr
./modules/programs/awscli
./modules/programs/beets # One test relies on services.mpd
./modules/programs/bemenu
./modules/programs/boxxy
./modules/programs/cavalier
./modules/programs/distrobox
./modules/programs/element-desktop/linux.nix
./modules/programs/eww
./modules/programs/foliate
./modules/programs/foot
./modules/programs/freetube
./modules/programs/fuzzel
./modules/programs/getmail
./modules/programs/gnome-shell
./modules/programs/gnome-terminal
./modules/programs/halloy
./modules/programs/hexchat
./modules/programs/hyprlock
./modules/programs/i3bar-river
./modules/programs/i3blocks
./modules/programs/i3status-rust
./modules/programs/imv
./modules/programs/kickoff
./modules/programs/kodi
./modules/programs/looking-glass-client
./modules/programs/lutris
./modules/programs/mangohud
./modules/programs/mpvpaper
./modules/programs/ncmpcpp-linux
./modules/programs/nh
./modules/programs/niriswitcher
./modules/programs/onagre
./modules/programs/onedrive
./modules/programs/pqiv
./modules/programs/ptyxis
./modules/programs/rbw
./modules/programs/rofi
./modules/programs/rofi-pass
./modules/programs/sway-easyfocus
./modules/programs/swayimg
./modules/programs/swaylock
./modules/programs/swayr
./modules/programs/terminator
./modules/programs/tofi
./modules/programs/vesktop
./modules/programs/vinegar
./modules/programs/waybar
./modules/programs/wayprompt
./modules/programs/wlogout
./modules/programs/wofi
./modules/programs/xmobar
./modules/programs/yambar
./modules/programs/yt-dlp
./modules/services/activitywatch
./modules/services/avizo
./modules/services/barrier
./modules/services/blanket
./modules/services/borgmatic
./modules/services/cachix-agent
./modules/services/clipcat
./modules/services/cliphist
./modules/services/clipman
./modules/services/clipse
./modules/services/comodoro
./modules/services/conky
./modules/services/copyq
./modules/services/darkman
./modules/services/davmail
./modules/services/devilspie2
./modules/services/dropbox
./modules/services/easyeffects
./modules/services/emacs
./modules/services/espanso
./modules/services/flameshot
./modules/services/fluidsynth
./modules/services/fnott
./modules/services/fusuma
./modules/services/git-sync
./modules/services/glance
./modules/services/gromit-mpx
./modules/services/home-manager-auto-expire
./modules/services/home-manager-auto-upgrade
./modules/services/hypridle
./modules/services/hyprpaper
./modules/services/hyprpolkitagent
./modules/services/hyprsunset
./modules/services/imapnotify
./modules/services/kanshi
./modules/services/lieer
./modules/services/linux-wallpaperengine
./modules/services/lxqt-policykit-agent
./modules/services/mako
./modules/services/mopidy
./modules/services/mpd
./modules/services/mpd-mpris
./modules/services/mpdris2
./modules/services/mpdscribble
./modules/services/nix-gc
./modules/services/ollama/linux
./modules/services/osmscout-server
./modules/services/pantalaimon
./modules/services/parcellite
./modules/services/pass-secret-service
./modules/services/pasystray
./modules/services/pbgopy
./modules/services/picom
./modules/services/playerctld
./modules/services/podman-linux
./modules/services/polkit-gnome
./modules/services/polybar
./modules/services/recoll
./modules/services/redshift-gammastep
./modules/services/remmina
./modules/services/restic
./modules/services/screen-locker
./modules/services/shikane
./modules/services/signaturepdf
./modules/services/snixembed
./modules/services/swayidle
./modules/services/swaync
./modules/services/swayosd
./modules/services/swww
./modules/services/sxhkd
./modules/services/syncthing/linux
./modules/services/tldr-update
./modules/services/trayer
./modules/services/trayscale
./modules/services/twmn
./modules/services/udiskie
./modules/services/volnoti
./modules/services/way-displays
./modules/services/wayvnc
./modules/services/window-managers/bspwm
./modules/services/window-managers/herbstluftwm
./modules/services/window-managers/hyprland
./modules/services/window-managers/i3
./modules/services/window-managers/labwc
./modules/services/window-managers/river
./modules/services/window-managers/spectrwm
./modules/services/window-managers/sway
./modules/services/window-managers/wayfire
./modules/services/wlsunset
./modules/services/wob
./modules/services/wpaperd
./modules/services/xsettingsd
./modules/services/yubikey-agent
./modules/systemd
./modules/targets-linux
# keep-sorted end
]
);
tests =
builtins.foldl'
(
a: b:
a
// (
let
imported = import b;
in
if lib.isFunction imported then imported { inherit lib pkgs; } else imported
)
)
{ }
(
[
# keep-sorted start case=no numeric=yes
./lib/generators
./lib/types
./modules/files
./modules/home-environment
./modules/misc/fontconfig
./modules/misc/manual
./modules/misc/nix
./modules/misc/specialisation
./modules/misc/xdg
./modules/xresources
# keep-sorted end
]
++ lib.optionals isDarwin [
# keep-sorted start case=no numeric=yes
./modules/launchd
./modules/targets-darwin
# keep-sorted end
]
++ lib.optionals isLinux [
# keep-sorted start case=no numeric=yes
./modules/config/home-cursor
./modules/config/i18n
./modules/dbus
./modules/i18n/input-method
./modules/misc/debug
./modules/misc/editorconfig
./modules/misc/gtk
./modules/misc/numlock
./modules/misc/pam
./modules/misc/qt
./modules/misc/xdg/linux.nix
./modules/misc/xsession
./modules/systemd
./modules/targets-linux
# keep-sorted end
]
++ (lib.concatMap
(
dir:
lib.pipe dir [
builtins.readDir
(lib.filterAttrs (_path: kind: kind == "directory"))
(lib.mapAttrsToList (path: _kind: lib.path.append dir path))
]
)
[
./modules/services
./modules/programs
]
)
);
}

27
tests/flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1750506804,
"narHash": "sha256-VLFNc4egNjovYVxDGyBYTrvVCgDYgENp5bVi9fPTDYc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4206c4cb56751df534751b058295ea61357bbbaa",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
abook-no-settings = ./no-settings.nix;
abook-with-settings = ./with-settings.nix;
}

View file

@ -1 +1,5 @@
{ aerospace = ./aerospace.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
aerospace = ./aerospace.nix;
}

View file

@ -1 +1,5 @@
{ anyrun = ./basic-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
anyrun = ./basic-config.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
autorandr-basic-configuration = ./basic-configuration.nix;
autorandr-scale = ./scale.nix;
}

View file

@ -1 +1,4 @@
{ awscli = ./awscli.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
awscli = ./awscli.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
beets-mpdstats = ./mpdstats.nix;
beets-mpdstats-external = ./mpdstats-external.nix;
beets-mpdupdate = ./mpdupdate.nix;

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
bemenu-empty-configuration = ./empty-configuration.nix;
bemenu-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
boxxy-empty-settings = ./empty-settings.nix;
boxxy-example-settings = ./example-settings.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
cavalier-general-settings = ./cavalier-general-settings.nix;
cavalier-cava-settings = ./cavalier-cava-settings.nix;
}

View file

@ -1 +1,4 @@
{ distrobox-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
distrobox-example-config = ./example-config.nix;
}

View file

@ -1 +0,0 @@
{ element-desktop-darwin = ./example-config-darwin.nix; }

View file

@ -0,0 +1 @@
{ element-desktop = ./example-config-darwin.nix; }

View file

@ -54,15 +54,15 @@
assertFileExists "home-files/Library/Application Support/Element-other/config.json"
assertFileContent "home-files/Library/Application Support/Element/config.json" \
${./cfg/default.json}
${../cfg/default.json}
assertFileContent "home-files/Library/Application Support/Element-work/config.json" \
${./cfg/work.json}
${../cfg/work.json}
assertFileContent "home-files/Library/Application Support/Element-home/config.json" \
${./cfg/home.json}
${../cfg/home.json}
assertFileContent "home-files/Library/Application Support/Element-other/config.json" \
${./cfg/other.json}
${../cfg/other.json}
'';
}

View file

@ -0,0 +1,3 @@
{ lib, pkgs, ... }:
(lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin (import ./darwin/default.nix))
// (lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux (import ./linux/default.nix))

View file

@ -1 +0,0 @@
{ element-desktop-linux = ./example-config-linux.nix; }

View file

@ -0,0 +1,3 @@
{
element-desktop = ./example-config-linux.nix;
}

View file

@ -54,15 +54,15 @@
assertFileExists home-files/.config/Element-other/config.json
assertFileContent home-files/.config/Element/config.json \
${./cfg/default.json}
${../cfg/default.json}
assertFileContent home-files/.config/Element-work/config.json \
${./cfg/work.json}
${../cfg/work.json}
assertFileContent home-files/.config/Element-home/config.json \
${./cfg/home.json}
${../cfg/home.json}
assertFileContent home-files/.config/Element-other/config.json \
${./cfg/other.json}
${../cfg/other.json}
'';
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
eww-basic-config = ./basic-config.nix;
eww-null-config = ./null-config.nix;
}

View file

@ -1 +1,6 @@
{ "firefox-multiple-derivatives" = ./multiple-derivatives.nix; }
{
"firefox-multiple-derivatives" = ./multiple-derivatives.nix;
}
// (import ./firefox.nix)
// (import ./floorp.nix)
// (import ./librewolf.nix)

View file

@ -1,3 +1,4 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
foliate-basic-theme = ./basic-theme.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
foot-example-settings = ./example-settings.nix;
foot-empty-settings = ./empty-settings.nix;
foot-systemd-user-service = ./systemd-user-service.nix;

View file

@ -1 +1,4 @@
{ freetube-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
freetube-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
fuzzel-example-settings = ./example-settings.nix;
fuzzel-empty-settings = ./empty-settings.nix;
}

View file

@ -1 +1,4 @@
{ getmail = ./getmail.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
getmail = ./getmail.nix;
}

View file

@ -1 +1,5 @@
{ gnome-shell = ./gnome-shell.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
gnome-shell = ./gnome-shell.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
gnome-terminal-1 = ./gnome-terminal-1.nix;
gnome-terminal-bad-profile-name = ./bad-profile-name.nix;
}

View file

@ -1 +1,4 @@
{ halloy-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
halloy-example-config = ./example-config.nix;
}

View file

@ -1 +1,4 @@
{ hexchat-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
hexchat-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
hyprlock-basic-configuration = ./basic-configuration.nix;
hyprlock-complex-configuration = ./complex-configuration.nix;
}

View file

@ -1 +1,4 @@
{ i3bar-river-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
i3bar-river-example-config = ./example-config.nix;
}

View file

@ -1 +1,5 @@
{ i3blocks-with-ordered-blocks = ./with-ordered-blocks.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
i3blocks-with-ordered-blocks = ./with-ordered-blocks.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
i3status-rust-with-default = ./with-default.nix;
i3status-rust-with-custom = ./with-custom.nix;
i3status-rust-with-extra-settings = ./with-extra-settings.nix;

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
imv-basic-configuration = ./basic-configuration.nix;
imv-empty-configuration = ./empty-configuration.nix;
}

View file

@ -1 +1,4 @@
{ kickoff-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
kickoff-example-config = ./example-config.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
kodi-example-addon-settings = ./example-addon-settings.nix;
kodi-example-settings = ./example-settings.nix;
kodi-example-sources = ./example-sources.nix;

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
looking-glass-client-example-settings = ./example-settings.nix;
looking-glass-client-empty-settings = ./empty-settings.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
lutris-runners = ./runners-configuration.nix;
# lutris-wine = ./wine-configuration.nix;
lutris-empty = ./empty.nix;

View file

@ -1 +1,4 @@
{ mangohud-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
mangohud-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1 +1,4 @@
{ mpvpaper-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
mpvpaper-example-config = ./example-config.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
ncmpcpp-use-mpd-config = ./ncmpcpp-use-mpd-config.nix;
ncmpcpp-issue-3560 = ./ncmpcpp-issue-3560.nix;
}

View file

@ -1 +1,4 @@
{ nh = ./nh.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
nh = ./nh.nix;
}

View file

@ -1 +1,4 @@
{ niriswitcher-program = ./niriswitcher.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
niriswitcher-program = ./niriswitcher.nix;
}

View file

@ -1 +1,4 @@
{ onagre-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
onagre-example-config = ./example-config.nix;
}

View file

@ -1 +1,4 @@
{ onedrive-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
onedrive-example-config = ./example-config.nix;
}

View file

@ -1 +1,4 @@
{ pqiv-settings = ./settings.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
pqiv-settings = ./settings.nix;
}

View file

@ -1,3 +1,4 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
ptyxis-basic-palette = ./palette.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
rbw-empty-settings = ./empty-settings.nix;
rbw-simple-settings = ./simple-settings.nix;
rbw-settings = ./settings.nix;

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
rofi-pass-root = ./rofi-pass-root.nix;
rofi-pass-config = ./rofi-pass-config.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
rofi-valid-config = ./valid-config.nix;
rofi-custom-theme = ./custom-theme.nix;
rofi-config-with-deprecated-options = ./config-with-deprecated-options.nix;

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
sketchybar = ./sketchybar.nix;
sketchybar-directory-config = ./sketchybar-directory-config.nix;
sketchybar-invalid-lua-config = ./sketchybar-invalid-lua-config.nix;

View file

@ -1 +1,4 @@
{ sway-easyfocus-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
sway-easyfocus-example-config = ./example-config.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
swayimg-empty-settings = ./empty-settings.nix;
swayimg-example-settings = ./example-settings.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
swaylock-disabled = import ./disabled.nix;
swaylock-settings = import ./settings.nix;
swaylock-enabled = import ./enabled.nix;

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
swayr-basic-configuration = ./basic-configuration.nix;
swayr-empty-configuration = ./empty-configuration.nix;
}

View file

@ -1 +1,5 @@
{ terminator-config-file = ./config-file.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
terminator-config-file = ./config-file.nix;
}

View file

@ -1,3 +1,4 @@
path = "/home/hm-user/base/path/calendar/*/*"
date_format = "%d.%m.%Y"
default_list = "test"

View file

@ -1 +1,5 @@
{ tofi-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
tofi-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1 +1,4 @@
{ vesktop-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
vesktop-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
vinegar-empty-settings = ./empty-settings.nix;
vinegar-example-settings = ./example-settings.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
waybar-systemd-with-graphical-session-target = ./systemd-with-graphical-session-target.nix;
waybar-styling = ./styling.nix;
waybar-settings-complex = ./settings-complex.nix;

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
wayprompt-empty-settings = ./empty-settings.nix;
wayprompt-example-settings = ./example-settings.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
wlogout-styling = ./styling.nix;
wlogout-layout-single = ./layout-single.nix;
wlogout-layout-multiple = ./layout-multiple.nix;

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
wofi-basic-configuration = ./basic-configuration.nix;
wofi-empty-configuration = ./empty-configuration.nix;
wofi-style-local-file = ./style-local-file.nix;

View file

@ -1 +1,5 @@
{ xmobar-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
xmobar-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
yambar-empty-settings = ./empty-settings.nix;
yambar-example-settings = ./example-settings.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
yt-dlp-simple-config = ./yt-dlp-simple-config.nix;
yt-dlp-extraConfig = ./yt-dlp-extraConfig.nix;
}

View file

@ -1,4 +1,5 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
activitywatch-basic-setup = ./basic-setup.nix;
activitywatch-empty-server-settings = ./empty-server-settings.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
avizo-with-settings = ./with-settings.nix;
avizo-without-settings = ./without-settings.nix;
}

View file

@ -1 +1,5 @@
{ barrier-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
barrier-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1 +1,5 @@
{ blanket-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
blanket-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +0,0 @@
{
darwin-borgmatic-service-basic-configuration = ./basic-configuration.nix;
darwin-borgmatic-frequency-assertion = ./frequency-assertion.nix;
}

View file

@ -0,0 +1,4 @@
{
borgmatic-service-basic-configuration = ./basic-configuration.nix;
borgmatic-frequency-assertion = ./frequency-assertion.nix;
}

View file

@ -1 +1,3 @@
{ borgmatic-service-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
(lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin (import ./darwin/default.nix))
// (lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux (import ./linux/default.nix))

View file

@ -0,0 +1,3 @@
{
borgmatic-service-basic-configuration = ./basic-configuration.nix;
}

View file

@ -0,0 +1,5 @@
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
bspwm-configuration = ./configuration.nix;
}

View file

@ -1 +1,5 @@
{ cachix = ./basic-setup.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
cachix = ./basic-setup.nix;
}

View file

@ -1 +1,5 @@
{ clipcat-example-config = ./example-config.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
clipcat-example-config = ./example-config.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
cliphist-sway-session-target = ./cliphist-sway-session-target.nix;
cliphist-extra-options = ./cliphist-extra-options.nix;
cliphist-multiple-session-targets = ./cliphist-multiple-session-targets.nix;

View file

@ -1 +1,5 @@
{ clipman-sway-session-target = ./clipman-sway-session-target.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
clipman-sway-session-target = ./clipman-sway-session-target.nix;
}

View file

@ -1 +1,5 @@
{ clipse-sway-session-target = ./clipse-sway-session-target.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
clipse-sway-session-target = ./clipse-sway-session-target.nix;
}

View file

@ -1 +1,5 @@
{ comodoro-service = ./comodoro.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
comodoro-service = ./comodoro.nix;
}

View file

@ -1 +1,5 @@
{ conky-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
conky-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
copyq-basic-configuration = ./basic-configuration.nix;
copyq-dont-force-x = ./dont-force-x-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
darkman-basic-configuration = ./basic-configuration.nix;
darkman-no-configuration = ./no-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
davmail-custom-settings = ./custom-settings.nix;
davmail-imitateOutlook = ./imitateOutlook.nix;
}

View file

@ -1 +1,5 @@
{ devilspie2-configuration = ./configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
devilspie2-configuration = ./configuration.nix;
}

View file

@ -1 +1,5 @@
{ dropbox-basic-configuration = ./basic-configuration.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
dropbox-basic-configuration = ./basic-configuration.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
easyeffects-service = ./service.nix;
easyeffects-example-preset = ./example-preset.nix;
}

View file

@ -1 +1,5 @@
{ emacs-service-basic = ./basic.nix; }
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isDarwin {
emacs-service-basic = ./basic.nix;
}

View file

@ -1,4 +1,6 @@
{
{ lib, pkgs, ... }:
lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
emacs-service-27 = ./emacs-service-27.nix;
emacs-service-28 = ./emacs-service-28.nix;
emacs-service-28-after-graphical-session-target = ./emacs-service-28-after-graphical-session-target.nix;

Some files were not shown because too many files have changed in this diff Show more