]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/home.nix
aubergine: wifi: unhide SSID
[julm/julm-nix.git] / nixos / profiles / home.nix
1 { pkgs, ... }:
2 {
3 hardware.printers.ensurePrinters = [
4 {
5 name = "HP_Deskjet_1510_aubergine";
6 description = "HP Deskjet 1510 @ aubergine";
7 deviceUri = "ipp://aubergine.local:631/printers/HP_Deskjet_1510_series";
8 model = "everywhere";
9 location = "Home";
10 ppdOptions = {
11 PageSize = "A4";
12 ColorModel = "KGray";
13 OutputMode = "Best";
14 };
15 }
16 ];
17 hardware.printers.ensureDefaultPrinter = "HP_Deskjet_1510_aubergine";
18 hardware.sane.netConf = ''
19 aubergine.local
20 '';
21
22 services.udev.extraRules = ''
23 SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="TOSHIBA_MK6459GSXP_519DC07HT", \
24 ACTION=="add", ENV{SYSTEMD_WANTS}+="zfs-import@off3.service"
25 SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="TOSHIBA_MK6459GSXP_519DC07HT", \
26 ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block zfs-import@off3.service"
27
28 SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="Samsung_SSD_870_EVO_1TB_S75CNX0X354178D", \
29 ACTION=="add", ENV{SYSTEMD_WANTS}+="zfs-import@off4.service"
30 SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="Samsung_SSD_870_EVO_1TB_S75CNX0X354178D", \
31 ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block zfs-import@off4.service"
32 '';
33 }