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: :END:
In this section we enable compatibility with several network devices I have at home, mainly printers and scanners. 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 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 #+begin_src nix :tangle profiles/nixos/common/networkdevices.nix
{ pkgs, ... }: { pkgs, ... }:
@ -5577,47 +5575,28 @@ This allows me to use my big scanner/printer's scanning function over the networ
enable = true; enable = true;
extraBackends = [ pkgs.sane-airscan ]; extraBackends = [ pkgs.sane-airscan ];
}; };
#+end_src
****** Printers # enable discovery and usage of network devices (esp. printers)
:PROPERTIES: services.printing = {
:CUSTOM_ID: h:8c13df62-c6d9-4a0a-83be-d77e71628f0b enable = true;
:END: drivers = [
pkgs.gutenprint
pkgs.gutenprintBin
];
browsedConf = ''
BrowseDNSSDSubTypes _cups,_print
BrowseLocalProtocols all
BrowseRemoteProtocols all
CreateIPPPrinterQueues All
BrowseProtocols all
'';
};
This allows me to use my big scanner/printer's printing function over the network. Most of the settings are driver related. services.avahi = {
enable = true;
#+begin_src nix :tangle profiles/nixos/common/networkdevices.nix nssmdns4 = true;
openFirewall = true;
# enable discovery and usage of network devices (esp. printers) };
services.printing = {
enable = true;
drivers = [
pkgs.gutenprint
pkgs.gutenprintBin
];
browsedConf = ''
BrowseDNSSDSubTypes _cups,_print
BrowseLocalProtocols all
BrowseRemoteProtocols all
CreateIPPPrinterQueues All
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;
openFirewall = true;
};
} }
#+end_src #+end_src
@ -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. 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 #+begin_src nix :tangle profiles/home/common/symlink.nix
{ self, ... }: { self, ... }:
{ {
@ -8879,22 +8861,13 @@ As for the `home.sessionVariables`, it should be noted that environment variable
source = self + /programs/git/.gitmessage; source = self + /programs/git/.gitmessage;
target = ".gitmessage"; target = ".gitmessage";
}; };
"swayidle/config" = {
source = self + /programs/swayidle/config;
target = ".config/swayidle/config";
};
}; };
#+end_src xdg.configFile = {
"tridactyl/tridactylrc".source = self + /programs/firefox/tridactyl/tridactylrc;
Also, we link some files to the users XDG configuration home: "tridactyl/themes/base16-codeschool.css".source = self + /programs/firefox/tridactyl/themes/base16-codeschool.css;
Also in firefox `about:config > toolkit.legacyUserProfileCustomizations.stylesheets` to true. "swayidle/config".source = self + /programs/swayidle/config;
};
#+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;
};
} }
#+end_src #+end_src

View file

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