chore: reformat
This commit is contained in:
parent
b638c4125b
commit
1402ee13cc
57 changed files with 845 additions and 466 deletions
|
@ -1,7 +1,8 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
xilinxJtag = pkgs.writeTextFile {
|
||||
|
@ -104,13 +105,18 @@ in
|
|||
passwordFile = config.age.secrets.paperless.path;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = let cfg = config.services.paperless; in [
|
||||
(if cfg.consumptionDirIsPublic then
|
||||
"d '${cfg.consumptionDir}' 777 - - - -"
|
||||
else
|
||||
"d '${cfg.consumptionDir}' 770 ${cfg.user} ${config.users.users.${cfg.user}.group} - -"
|
||||
)
|
||||
];
|
||||
systemd.tmpfiles.rules =
|
||||
let
|
||||
cfg = config.services.paperless;
|
||||
in
|
||||
[
|
||||
(
|
||||
if cfg.consumptionDirIsPublic then
|
||||
"d '${cfg.consumptionDir}' 777 - - - -"
|
||||
else
|
||||
"d '${cfg.consumptionDir}' 770 ${cfg.user} ${config.users.users.${cfg.user}.group} - -"
|
||||
)
|
||||
];
|
||||
|
||||
age.secrets.paperless = {
|
||||
file = "${config.dadada.secrets.path}/paperless.age";
|
||||
|
@ -130,12 +136,14 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
hardware.printers.ensurePrinters = [{
|
||||
name = "Brother_HL-L2300D";
|
||||
model = "everywhere";
|
||||
location = "BS";
|
||||
deviceUri = "ipp://192.168.101.29:631/printers/Brother_HL-L2300D";
|
||||
}];
|
||||
hardware.printers.ensurePrinters = [
|
||||
{
|
||||
name = "Brother_HL-L2300D";
|
||||
model = "everywhere";
|
||||
location = "BS";
|
||||
deviceUri = "ipp://192.168.101.29:631/printers/Brother_HL-L2300D";
|
||||
}
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
android-studio
|
||||
|
@ -175,7 +183,7 @@ in
|
|||
saleaeLogic
|
||||
keychron
|
||||
pkgs.libsigrok
|
||||
]; #noMtpUdevRules ];
|
||||
]; # noMtpUdevRules ];
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
|
@ -187,7 +195,20 @@ in
|
|||
users.users = {
|
||||
dadada = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" "libvirtd" "adbusers" "kvm" "video" "scanner" "lp" "docker" "dialout" "wireshark" "paperless" ];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"libvirtd"
|
||||
"adbusers"
|
||||
"kvm"
|
||||
"video"
|
||||
"scanner"
|
||||
"lp"
|
||||
"docker"
|
||||
"dialout"
|
||||
"wireshark"
|
||||
"paperless"
|
||||
];
|
||||
shell = "/run/current-system/sw/bin/zsh";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue