mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
made boot silent and faster
deleted samba service
This commit is contained in:
parent
6b7ce7d133
commit
a7384b38e6
4 changed files with 15 additions and 26 deletions
|
|
@ -1,7 +1,19 @@
|
|||
{
|
||||
{pkgs, ...}: {
|
||||
systemd = {
|
||||
targets.network-online.wantedBy = pkgs.lib.mkForce []; # Normally ["multi-user.target"]
|
||||
services.NetworkManager-wait-online.wantedBy = pkgs.lib.mkForce []; # Normally ["network-online.target"]
|
||||
};
|
||||
environment.etc = {
|
||||
"issue" = {
|
||||
text = "[?12l[?25h";
|
||||
mode = "0444";
|
||||
};
|
||||
};
|
||||
boot = {
|
||||
blacklistedKernelModules = ["nouveau" "lbm-nouveau" "pcspkr"];
|
||||
kernelParams = ["fbcon=nodefer" "bgrt_disable" "quiet" "splash"];
|
||||
kernelParams = ["fbcon=nodefer" "bgrt_disable" "quiet" "splash" "systemd.show_status=false" "rd.udev.log_level=3" "vt.global_cursor_default=0"];
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "breeze";
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
{settings, ...}: {
|
||||
services.samba-wsdd.enable = true; # make shares visible for windows 10 clients
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [139 445];
|
||||
allowedUDPPorts = [137 138];
|
||||
};
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
shares = {
|
||||
Share = {
|
||||
path = "/home/${settings.username}/Share";
|
||||
browseable = "no";
|
||||
"read only" = "no";
|
||||
"guest ok" = "no";
|
||||
"force user" = "${settings.username}";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
}: {
|
||||
boot = {
|
||||
kernelParams = ["amd_iommu=on" "iommu=pt" "vfio_iommu_type1.allow_unsafe_interrupts=1" "kvm.ignore_msrs=1"];
|
||||
kernelModules = ["amd-kvm" "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||
kernelModules = ["kvm-amd" "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||
initrd.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||
extraModprobeConfig = ''
|
||||
options vfio-pci ids=10de:228e,10de:2504
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
../modules/vfio.nix
|
||||
../modules/refreshrate.nix
|
||||
../modules/xserver.nix
|
||||
../modules/smb.nix
|
||||
../modules/zsh.nix
|
||||
../modules/git.nix
|
||||
#../modules/mining.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue