style: summarize some sections

This commit is contained in:
Leon Schwarzäugl 2025-02-25 22:53:12 +01:00
parent e3a0416a86
commit 6279713ab5
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
2 changed files with 31 additions and 61 deletions

View file

@ -5562,12 +5562,10 @@ Enables the blueman service including the nice system tray icon.
:END:
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners.
****** Scanners
:PROPERTIES:
:CUSTOM_ID: h:fae5939e-22ac-4532-a10e-0b86013d20ce
:END:
This allows me to use my big scanner/printer's scanning function over the network.
This also allows me to use my big scanner/printer's printing function over the network. Most of the settings are driver related.
Avahi is the service used for the network discovery.
#+begin_src nix :tangle profiles/nixos/common/networkdevices.nix
{ pkgs, ... }:
@ -5577,16 +5575,6 @@ This allows me to use my big scanner/printer's scanning function over the networ
enable = true;
extraBackends = [ pkgs.sane-airscan ];
};
#+end_src
****** Printers
:PROPERTIES:
:CUSTOM_ID: h:8c13df62-c6d9-4a0a-83be-d77e71628f0b
:END:
This allows me to use my big scanner/printer's printing function over the network. Most of the settings are driver related.
#+begin_src nix :tangle profiles/nixos/common/networkdevices.nix
# enable discovery and usage of network devices (esp. printers)
services.printing = {
@ -5603,16 +5591,7 @@ This allows me to use my big scanner/printer's printing function over the networ
BrowseProtocols all
'';
};
#+end_src
****** Avahi (device discovery)
:PROPERTIES:
:CUSTOM_ID: h:80decee9-9151-4892-967e-73d103205770
:END:
Avahi is the service used for the network discovery.
#+begin_src nix :tangle profiles/nixos/common/networkdevices.nix
services.avahi = {
enable = true;
nssmdns4 = true;
@ -8858,6 +8837,9 @@ This section should be used in order to symlink already existing configuration f
As for the `home.sessionVariables`, it should be noted that environment variables that are needed at system start should NOT be loaded here, but instead in `programs.zsh.config.extraSessionCommands` (in the home-manager programs section). This is also where all the wayland related variables are stored.
Also, we link some files to the users XDG configuration home:
Also in firefox `about:config > toolkit.legacyUserProfileCustomizations.stylesheets` to true.
#+begin_src nix :tangle profiles/home/common/symlink.nix
{ self, ... }:
{
@ -8879,21 +8861,12 @@ As for the `home.sessionVariables`, it should be noted that environment variable
source = self + /programs/git/.gitmessage;
target = ".gitmessage";
};
"swayidle/config" = {
source = self + /programs/swayidle/config;
target = ".config/swayidle/config";
};
};
#+end_src
Also, we link some files to the users XDG configuration home:
Also in firefox `about:config > toolkit.legacyUserProfileCustomizations.stylesheets` to true.
#+begin_src nix :tangle profiles/home/common/symlink.nix
xdg.configFile = {
"tridactyl/tridactylrc".source = self + /programs/firefox/tridactyl/tridactylrc;
"tridactyl/themes/base16-codeschool.css".source = self + /programs/firefox/tridactyl/themes/base16-codeschool.css;
"swayidle/config".source = self + /programs/swayidle/config;
};
}
#+end_src

View file

@ -18,14 +18,11 @@
source = self + /programs/git/.gitmessage;
target = ".gitmessage";
};
"swayidle/config" = {
source = self + /programs/swayidle/config;
target = ".config/swayidle/config";
};
};
xdg.configFile = {
"tridactyl/tridactylrc".source = self + /programs/firefox/tridactyl/tridactylrc;
"tridactyl/themes/base16-codeschool.css".source = self + /programs/firefox/tridactyl/themes/base16-codeschool.css;
"swayidle/config".source = self + /programs/swayidle/config;
};
}