Add files via upload

This commit is contained in:
zipfriis
2023-06-22 22:26:04 +02:00
committed by GitHub
parent d681609d74
commit c1886ee22b
5 changed files with 799 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/21303273-8025-48c7-adff-0cc7ba867b13";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2272-82DA";
fsType = "vfat";
};
fileSystems."/mnt/DATA" =
{ device = "/dev/disk/by-uuid/0ac7b949-3bed-4223-8eda-993ed8d4baeb";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/a242794d-10d9-4578-a7af-5c6e2f15bc1f"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -0,0 +1,65 @@
{ config, lib, pkgs, modulesPath, ... }:
{
services = {
# X server
xserver = {
enable = true;
# setting cinnamon as dafult
desktopManager.cinnamon.enable = true;
displayManager = {
defaultSession = "cinnamon";
gdm.enable = true;
# login settings
autoLogin.enable = false;
autoLogin.user = "zipfriis";
};
# X11 keymap
layout = "us";
xkbVariant = "";
# set window manager
windowManager = {
qtile = {
enable = true;
backend = "wayland";
};
};
};
# audio backend
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# self hosted media server
#jellyfin.enable = true;
## I2P Eepsite
i2pd = {
enable = true;
ifname = "ens3";
address = "xxxx";
# TCP & UDP
port = 9898;
# TCP
ntcp2.port = 9899;
inTunnels = {
myEep = {
enable = true;
keys = "myEep-keys.dat";
inPort = 80;
address = "::1";
destination = "::1";
port = 8081;
# inbound.length = 1;
# outbound.length = 1;
};
};
enableIPv4 = true;
enableIPv6 = true;
};
};
}