Remove per‑host printers.nix and merge printing settings into host variables. Add simple-scan package and enable it for desktop and laptop hosts. Disable simple-scan for the default host. Enable SANE daemon and expose its libraries in fish init. Open required UDP ports 5353 and 54925 in network module.
43 lines
761 B
Nix
43 lines
761 B
Nix
{
|
|
pkgs,
|
|
shell,
|
|
...
|
|
}: {
|
|
programs = {
|
|
fish = {
|
|
enable =
|
|
if shell == "fish"
|
|
then true
|
|
else false;
|
|
package = pkgs.fish;
|
|
generateCompletions = false;
|
|
interactiveShellInit = ''
|
|
set fish_greeting
|
|
# fastfetch
|
|
'';
|
|
shellInit = ''
|
|
set -gx LD_LIBRARY_PATH /etc/sane-libs $LD_LIBRARY_PATH
|
|
'';
|
|
};
|
|
|
|
nix-your-shell = {
|
|
enable = true;
|
|
package = pkgs.nix-your-shell;
|
|
enableFishIntegration =
|
|
if shell == "fish"
|
|
then true
|
|
else false;
|
|
nix-output-monitor = {
|
|
enable = true;
|
|
package = pkgs.nix-output-monitor;
|
|
};
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./aliases.nix
|
|
./functions.nix
|
|
./plugins.nix
|
|
];
|
|
}
|