aaaaa
This commit is contained in:
parent
414e830efa
commit
d3a93fd115
35 changed files with 1832 additions and 228 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
|
@ -13,13 +14,30 @@ in
|
|||
boot.initrd.systemd.enable = true;
|
||||
hardware.keyboard.zsa.enable = true;
|
||||
programs.nh.enable = true;
|
||||
# patch in auth_keep for run0
|
||||
security.polkit.debug = true;
|
||||
security.polkit.package = pkgs.polkit.overrideAttrs (old: {
|
||||
version = old.version + "-git";
|
||||
src = inputs.polkit;
|
||||
patches = lib.take 1 old.patches;
|
||||
# patches = [
|
||||
# (pkgs.fetchpatch2 {
|
||||
# url = "https://patch-diff.githubusercontent.com/raw/polkit-org/polkit/pull/533.patch";
|
||||
# hash = "sha256-noR87BAzgBWtYDb0j9jkM/8wEkp7H+nArvKZrz69wfQ=";
|
||||
# })
|
||||
# ];
|
||||
});
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
polkit.log("action=" + action);
|
||||
polkit.log("subject=" + subject);
|
||||
});
|
||||
polkit.addRule(function(action, subject) { // make run0 keep pw for some time (tm)
|
||||
if (
|
||||
subject.isInGroup("wheel")
|
||||
&& action.id == "org.freedesktop.systemd1.manage-units"
|
||||
) {
|
||||
return polkit.Result.AUTH_ADMIN_KEEP;
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ in
|
|||
xyno.desktop.audio.enable = lib.mkDefault true;
|
||||
security.soteria.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
services.pcscd.enable = true;
|
||||
services.pcscd.plugins = [ pkgs.pcsc-scm-scl011];
|
||||
xyno.hardware.kmonad.enable = true;
|
||||
# wayland on electron
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
|
@ -36,7 +38,7 @@ in
|
|||
qt = {
|
||||
enable = true;
|
||||
style = "breeze";
|
||||
platformTheme = "lxqt";
|
||||
platformTheme = "gnome";
|
||||
};
|
||||
|
||||
programs.yazi = {
|
||||
|
|
@ -111,16 +113,24 @@ in
|
|||
kdePackages.breeze-icons
|
||||
];
|
||||
|
||||
|
||||
# fonts
|
||||
fonts.fontconfig.defaultFonts = {
|
||||
sansSerif = ["Source Sans 3" "Noto Sans Symbols 2"];
|
||||
monospace = ["JetBrainsMono Nerd Font" "Noto Sans Symbols 2"];
|
||||
};
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
# nerd-fonts.source-sans
|
||||
# nerd-fonts.b612
|
||||
cantarell-fonts
|
||||
dejavu_fonts
|
||||
source-code-pro # Default monospace font in 3.32
|
||||
source-sans
|
||||
b612
|
||||
lxqt.lxqt-config
|
||||
ptouch-print
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
|
||||
];
|
||||
|
||||
|
|
|
|||
50
modules/presets/server.nix
Normal file
50
modules/presets/server.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.xyno.presets.server;
|
||||
in
|
||||
{
|
||||
options.xyno.presets.server.enable =
|
||||
lib.mkEnableOption "enables xynos base server config (ssh/smart/email/zed/...)";
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID/oMAi5jyQsNohfhcSH2ItisTpBGB0WtYTVxJYKKqhj"]; # theseus
|
||||
|
||||
environment.etc."msmtprc".enable = false;
|
||||
sops.secrets."msmtp/rc" = {
|
||||
path = "/etc/msmtprc";
|
||||
};
|
||||
sops.secrets."msmtp/aliases" = {
|
||||
path = "/etc/aliases";
|
||||
};
|
||||
|
||||
programs.msmtp = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.smartd = {
|
||||
enable = true;
|
||||
extraOptions = [ "--interval=7200" ];
|
||||
notifications.test = true;
|
||||
};
|
||||
|
||||
# emails for zfs
|
||||
services.zfs.zed.enableMail = true;
|
||||
services.zfs.zed.settings = {
|
||||
ZED_EMAIL_ADDR = [ "root" ];
|
||||
ZED_EMAIL_PROG = "${pkgs.msmtp}/bin/msmtp";
|
||||
ZED_EMAIL_OPTS = "@ADDRESS@";
|
||||
|
||||
ZED_NOTIFY_INTERVAL_SECS = 7200;
|
||||
ZED_NOTIFY_VERBOSE = true;
|
||||
|
||||
ZED_USE_ENCLOSURE_LEDS = false;
|
||||
ZED_SCRUB_AFTER_RESILVER = true;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue