mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Merge branch 'main' of codeberg.org:muon/home
This commit is contained in:
commit
62f7f7c3ed
6 changed files with 53 additions and 5 deletions
|
|
@ -38,6 +38,7 @@ in {
|
||||||
mods.desktop.wayland.enable = false;
|
mods.desktop.wayland.enable = false;
|
||||||
mods.desktop.gaming.enable = true;
|
mods.desktop.gaming.enable = true;
|
||||||
mods.boot.enable = true;
|
mods.boot.enable = true;
|
||||||
|
mods.clamav.enable = true;
|
||||||
|
|
||||||
mods.theme.enable = true;
|
mods.theme.enable = true;
|
||||||
mods.theme.scheme = "woodland";
|
mods.theme.scheme = "woodland";
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,27 @@
|
||||||
{ config, lib, pkgs, inputs, system, ... }:
|
{ config, lib, pkgs, inputs, system, ... }:
|
||||||
let cfg = config.mods;
|
let
|
||||||
|
cfg = config.mods;
|
||||||
|
|
||||||
|
keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKEio+Y5wBVD1wILaH2R3wV10FvVjiqy/4gGBWHOITTB muon@muon"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKevYmkH7xvYoquBjnYZ7PJiVqf+GOh9fxAJBN6wZGBB gin4@hi.is"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILmAOd9VbhyJeibt6Vrb101MNTk5W8+rh94Djv/C+pyu muon@muho"
|
||||||
|
];
|
||||||
in {
|
in {
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
services.openssh.enable = true;
|
||||||
|
users.users.muon.openssh.authorizedKeys.keys = keys;
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = keys;
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
environment.systemPackages = with inputs.nix-alien.packages.${system};
|
environment.systemPackages = with inputs.nix-alien.packages.${system}; [
|
||||||
[ nix-alien ];
|
nix-alien
|
||||||
|
pkgs.rustdesk-flutter
|
||||||
|
pkgs.motion
|
||||||
|
pkgs.inotify-tools
|
||||||
|
];
|
||||||
|
|
||||||
# System
|
# System
|
||||||
mods.user.name = "muon";
|
mods.user.name = "muon";
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ "v4l2loopback" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.supportedFilesystems = [ "ntfs" "btrfs" ];
|
boot.supportedFilesystems = [ "ntfs" "btrfs" ];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,8 @@
|
||||||
{ pkgs, lib, ... }: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./core
|
./core
|
||||||
./system
|
./system
|
||||||
|
|
@ -6,6 +10,7 @@
|
||||||
./theme
|
./theme
|
||||||
./server
|
./server
|
||||||
./sops
|
./sops
|
||||||
|
./security
|
||||||
|
|
||||||
./impermanence.nix
|
./impermanence.nix
|
||||||
|
|
||||||
|
|
|
||||||
18
modules/nixos/security/clamav.nix
Normal file
18
modules/nixos/security/clamav.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; {
|
||||||
|
options.mods.clamav.enable = mkEnableOption "enables clamav";
|
||||||
|
|
||||||
|
config = mkIf config.mods.clamav.enable {
|
||||||
|
services.clamav = {
|
||||||
|
scanner.enable = true;
|
||||||
|
updater.enable = true;
|
||||||
|
fangfrisch.enable = true;
|
||||||
|
daemon.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/nixos/security/default.nix
Normal file
9
modules/nixos/security/default.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./clamav.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue