hosts/satori: random changes
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
'';*/
|
'';*/
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
};
|
};
|
||||||
kernelParams = [ "intel_pstate=active" "intel_iommu=on" "nvidia_drm.modeset=1" ];
|
kernelParams = [ "intel_pstate=active" "intel_iommu=on" "nvidia_drm.modeset=1" "clearcpuid=512" ];
|
||||||
kernelModules = [ "kvm-intel" "snd-seq" "snd-rawmidi" "joydev" ];
|
kernelModules = [ "kvm-intel" "snd-seq" "snd-rawmidi" "joydev" ];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [ nvidia_x11 v4l2loopback ];
|
extraModulePackages = with config.boot.kernelPackages; [ nvidia_x11 v4l2loopback ];
|
||||||
loader = {
|
loader = {
|
||||||
|
@@ -19,6 +19,13 @@
|
|||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fileSystems."/media/real" =
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-uuid/8086be20-c770-46be-bd8f-5bd2d7735c7d";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "rw" ];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/media/ntfs" =
|
fileSystems."/media/ntfs" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/A4CC66B6CC668282";
|
device = "/dev/disk/by-uuid/A4CC66B6CC668282";
|
||||||
@@ -26,13 +33,6 @@
|
|||||||
options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
|
options = [ "uid=natto" "gid=users" "umask=0022" "rw" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/media/real" =
|
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/6372bc0c-0917-469d-a845-2ce65513e306";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "rw" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
algorithm = "lz4";
|
algorithm = "lz4";
|
||||||
@@ -40,6 +40,10 @@
|
|||||||
priority = -1;
|
priority = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/var/swap"; size = 4096; }
|
||||||
|
];
|
||||||
|
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
enable = true;
|
enable = true;
|
||||||
cpuFreqGovernor = "powersave";
|
cpuFreqGovernor = "powersave";
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "satori";
|
hostName = "satori";
|
||||||
hostId = "beca3df0";
|
hostId = "beca3df0";
|
||||||
defaultGateway = "192.168.1.1";
|
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wifi = {
|
wifi = {
|
||||||
@@ -12,16 +11,12 @@
|
|||||||
backend = "iwd";
|
backend = "iwd";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 22 18172 6600 8001 25565 ];
|
allowedTCPPorts = [ 22 18172 6600 8001 25565 ];
|
||||||
allowedUDPPorts = [ 22 17840 18172 ];
|
allowedUDPPorts = [ 22 17840 18172 ];
|
||||||
trustedInterfaces = [ "docker0" ];
|
trustedInterfaces = [ "docker0" ];
|
||||||
};
|
};
|
||||||
interfaces = {
|
|
||||||
enp7s0 = {
|
|
||||||
useDHCP = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wireguard.interfaces.wg0 = with network.addresses.wireguard.ips; {
|
wireguard.interfaces.wg0 = with network.addresses.wireguard.ips; {
|
||||||
ips = [ satori ];
|
ips = [ satori ];
|
||||||
@@ -37,5 +32,8 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
defaultGateway = "192.168.1.1";
|
||||||
|
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
git.enable = true;
|
||||||
|
|
||||||
gnupg = {
|
gnupg = {
|
||||||
agent = {
|
agent = {
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
|
@@ -3,21 +3,17 @@
|
|||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
tor.enable = true;
|
tor.enable = true;
|
||||||
openssh = {
|
openssh.enable = true;
|
||||||
enable = true;
|
|
||||||
permitRootLogin = "yes";
|
|
||||||
};
|
|
||||||
ratbagd.enable = true;
|
ratbagd.enable = true;
|
||||||
btrfs.autoScrub.enable = true;
|
btrfs.autoScrub.enable = true;
|
||||||
|
zfs.autoScrub.enable = true;
|
||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
|
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
|
||||||
'';
|
'';
|
||||||
zfs.autoScrub.enable = true;
|
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
tlp = {
|
tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user