Initial commit
This commit is contained in:
3
modules/school/README.md
Normal file
3
modules/school/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
This module contains school-related stuff.
|
||||
|
||||
TLDR: Virtualbox, Trilium, school Zen Browser profile
|
||||
35
modules/school/cups.nix
Normal file
35
modules/school/cups.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# Service discovery
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# CUPS
|
||||
services.printing = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Printer configuration
|
||||
hardware.printers = {
|
||||
ensurePrinters = [
|
||||
{
|
||||
name = "DJ_pier*****a_drukarka_HP";
|
||||
location = "piekło";
|
||||
# deviceUri = "dnssd://HP%20Ink%20Tank%20Wireless%20410%20series%20%5BDD2297%5D._ipp._tcp.local/?uuid=1c852a4d-b800-1f08-abcd-84a93edd2297";
|
||||
deviceUri = "ipp://192.168.100.20:631/ipp/print";
|
||||
model = "everywhere";
|
||||
ppdOptions = {
|
||||
PageSize = "A4";
|
||||
};
|
||||
}
|
||||
];
|
||||
ensureDefaultPrinter = "DJ_pier*****a_drukarka_HP";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
simple-scan
|
||||
];
|
||||
}
|
||||
19
modules/school/default.nix
Normal file
19
modules/school/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./cups.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
anydesk
|
||||
openboard
|
||||
trilium-desktop
|
||||
];
|
||||
|
||||
virtualisation.virtualbox.host = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Zen Browser configuration
|
||||
home-manager.sharedModules = [./home.nix];
|
||||
}
|
||||
45
modules/school/home.nix
Normal file
45
modules/school/home.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
zenPkg = inputs.zen-browser.packages.${pkgs.stdenv.system}.beta;
|
||||
in
|
||||
{
|
||||
programs.zen-browser.profiles.school = {
|
||||
id = 1;
|
||||
name = "school";
|
||||
# extensions.force = true;
|
||||
#extensions = ffExtensions;
|
||||
#settings = ffSettings;
|
||||
};
|
||||
xdg.desktopEntries.zen-browser_school = {
|
||||
name = "Zen Browser (School)";
|
||||
genericName = "Web Browser (School)";
|
||||
exec = "${zenPkg}/bin/zen-beta --name zen-browser_school -P school %U";
|
||||
terminal = false;
|
||||
categories = [ "Network" "WebBrowser" ];
|
||||
mimeType = [
|
||||
"text/html"
|
||||
"text/xml"
|
||||
"application/xhtml+xml"
|
||||
"application/vnd.mozilla.xul+xml"
|
||||
"x-scheme-handler/http"
|
||||
"x-scheme-handler/https"
|
||||
];
|
||||
icon = "zen-browser";
|
||||
actions = {
|
||||
"new-window" = {
|
||||
name = "New Window";
|
||||
exec = "${zenPkg}/bin/zen-beta --name zen-browser_school -P school --new-window %u";
|
||||
};
|
||||
"private-window" = {
|
||||
name = "New Private Window";
|
||||
exec = "${zenPkg}/bin/zen-beta --name zen-browser_school -P school --private-window %u";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
Type = "Application";
|
||||
Version = "1.4";
|
||||
StartupNotify = "true";
|
||||
StartupWMClass = "zen-browser_school";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user