misc changes
new services, random config updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.unstable.linuxPackages_zen;
|
||||
kernelPackages = pkgs.unstable.linuxPackages_latest;
|
||||
initrd={
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci"];
|
||||
/* preDeviceCommands = ''
|
||||
|
@@ -51,7 +51,7 @@
|
||||
};
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
cpuFreqGovernor = "powersave";
|
||||
cpuFreqGovernor = "schedutil";
|
||||
};
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
wireless.enable = true;
|
||||
wireless.interfaces = [ "wlp0s20f3" ];
|
||||
firewall = {
|
||||
allowedTCPPorts = [ 22 18172 ];
|
||||
allowedTCPPorts = [ 22 18172 6600 ];
|
||||
allowedUDPPorts = [ 22 17840 18172 ];
|
||||
};
|
||||
interfaces = {
|
||||
|
@@ -16,9 +16,10 @@
|
||||
cachix
|
||||
gcc
|
||||
rustc
|
||||
openjdk
|
||||
stable.openjdk
|
||||
virtmanager
|
||||
tree-sitter
|
||||
docker-compose
|
||||
];
|
||||
|
||||
programs = {
|
||||
@@ -71,7 +72,6 @@
|
||||
dconf.enable = true;
|
||||
adb.enable = true;
|
||||
light.enable = true;
|
||||
noisetorch.enable = true;
|
||||
proxychains = {
|
||||
enable = true;
|
||||
chain.type = "dynamic";
|
||||
@@ -98,5 +98,14 @@
|
||||
experimental-features = nix-command ca-references flakes
|
||||
'';
|
||||
trustedUsers = [ "root" "natto" ];
|
||||
binaryCaches = [
|
||||
"https://nix-gaming.cachix.org"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@@ -12,9 +12,14 @@
|
||||
udev.extraRules = ''
|
||||
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
|
||||
'';
|
||||
mysql = {
|
||||
enable = true;
|
||||
package = pkgs.mysql;
|
||||
};
|
||||
};
|
||||
systemd.services = {
|
||||
tor.wantedBy = lib.mkForce [];
|
||||
mysql.wantedBy = lib.mkForce [];
|
||||
logmein-hamachi.wantedBy = lib.mkForce [];
|
||||
openssh.wantedBy = lib.mkForce [];
|
||||
#printing.wantedBy = lib.mkForce [];
|
||||
|
@@ -1,7 +1,15 @@
|
||||
{config, agenix, pkgs, ... }:
|
||||
{lib, config, agenix, pkgs, ... }:
|
||||
{
|
||||
time.timeZone = "Asia/Kolkata";
|
||||
|
||||
environment = {
|
||||
etc."current-system-packages".text =
|
||||
let
|
||||
packages = builtins.map (p: "${p.name}") config.environment.systemPackages;
|
||||
sortedUnique = builtins.sort builtins.lessThan (lib.unique packages);
|
||||
formatted = builtins.concatStringsSep "\n" sortedUnique;
|
||||
in
|
||||
formatted;
|
||||
sessionVariables = {
|
||||
QT_X11_NO_MITSHM="1";
|
||||
QT_QPA_PLATFORMTHEME = "gtk3";
|
||||
@@ -34,7 +42,7 @@
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
home = "/home/natto";
|
||||
extraGroups = [ "wheel" "adbusers" "video" "libvirtd" ];
|
||||
extraGroups = [ "wheel" "adbusers" "video" "libvirtd" "docker" ];
|
||||
};
|
||||
i18n = {
|
||||
inputMethod = {
|
||||
@@ -44,5 +52,6 @@
|
||||
fcitx.engines = with pkgs.fcitx-engines; [ m17n mozc ];
|
||||
};
|
||||
};
|
||||
virtualisation.docker.enable = true;
|
||||
gtk.iconCache.enable = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user