remove code under comments & add home-server basic config (WIP)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{
|
||||
boot = {
|
||||
plymouth = {
|
||||
enable = true;
|
||||
enable = lib.mkDefault true;
|
||||
theme = "double";
|
||||
themePackages = with pkgs;
|
||||
[
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
{
|
||||
# zramSwap.enable = true;
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.enable = true; # i can use not only btrfs
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
networking.networkmanager.enable = true;
|
||||
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
|
||||
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||
networking.firewall.enable = false;
|
||||
networking.firewall.enable = false; # ! 🤡
|
||||
}
|
||||
|
||||
+1
-69
@@ -8,78 +8,10 @@
|
||||
powerManagement.powertop.enable = true;
|
||||
services.thermald.enable = true;
|
||||
services.system76-scheduler.settings.cfsProfiles.enable = true;
|
||||
# networking.networkmanager.wifi.powersave = true;
|
||||
|
||||
services.auto-cpufreq.enable = true;
|
||||
|
||||
hardware.intel-gpu-tools.enable = true;
|
||||
|
||||
### NixOS power management
|
||||
# powerManagement = {
|
||||
# enable = true;
|
||||
# #cpufreq.min = 800000;
|
||||
# #cpufreq.max = 2200000;
|
||||
# # powertop.enable = true;
|
||||
# #powerUpCommands =
|
||||
# cpuFreqGovernor = "schedutil"; # power, performance, ondemand
|
||||
# };
|
||||
hardware.intel-gpu-tools.enable = true; # ! wtf
|
||||
|
||||
boot.kernelParams = [ "usbcore.autosuspend=0" ];
|
||||
|
||||
# services.tlp = {
|
||||
# enable = true;
|
||||
# settings = { # power saving priority
|
||||
# CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
|
||||
# CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
|
||||
# CPU_ENERGY_PERF_POLICY_ON_SAV = "power";
|
||||
|
||||
# PLATFORM_PROFILE_ON_AC = "performance";
|
||||
# PLATFORM_PROFILE_ON_BAT = "power";
|
||||
# PLATFORM_PROFILE_ON_SAV = "low-power";
|
||||
|
||||
# CPU_BOOST_ON_AC = 1;
|
||||
# CPU_BOOST_ON_BAT = 0;
|
||||
# CPU_BOOST_ON_SAV = 0;
|
||||
|
||||
# CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||
# CPU_HWP_DYN_BOOST_ON_BAT = 0;
|
||||
# CPU_HWP_DYN_BOOST_ON_SAV = 0;
|
||||
|
||||
# AMDGPU_ABM_LEVEL_ON_AC = 0;
|
||||
# AMDGPU_ABM_LEVEL_ON_BAT = 3;
|
||||
# AMDGPU_ABM_LEVEL_ON_SAV = 3;
|
||||
|
||||
# # CPU_BOOST_ON_AC = 1;
|
||||
# # CPU_BOOST_ON_BAT = 0;
|
||||
# # CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||
# # CPU_HWP_DYN_BOOST_ON_BAT = 0;
|
||||
# # CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
# # CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
# # CPU_SCALING_MIN_FREQ_ON_BAT = 0;
|
||||
# # CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
# # CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
|
||||
# # AMDGPU_ABM_LEVEL_ON_AC = 0;
|
||||
# # AMDGPU_ABM_LEVEL_ON_BAT = 0;
|
||||
# # PLATFORM_PROFILE_ON_AC = "performance";
|
||||
# # PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||
# # PCIE_ASPM_ON_BAT = "powersupersave";
|
||||
# # SATA_LINKPWR_ON_AC = "med_power_with_dipm";
|
||||
# # SATA_LINKPWR_ON_BAT = "min_power";
|
||||
# # RUNTIME_PM_ON_AC = "on";
|
||||
# # RUNTIME_PM_ON_BAT = "auto";
|
||||
# # SOUND_POWER_SAVE_ON_AC = 0;
|
||||
# # SOUND_POWER_SAVE_ON_BAT = 1;
|
||||
# # SOUND_POWER_SAVE_CONTROLLER = "Y";
|
||||
# # CPU_MAX_PERF_ON_AC = 100;
|
||||
# # CPU_MAX_PERF_ON_BAT = 50;
|
||||
# # NMI_WATCHDOG = 0;
|
||||
|
||||
# # USB_AUTOSUSPEND = 0;
|
||||
# # USB_BLACKLIST_BTUSB = 0;
|
||||
# # START_CHARGE_THRESH_BAT0 = 0;
|
||||
# # STOP_CHARGE_THRESH_BAT0 = 1;
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
|
||||
@@ -9,12 +9,13 @@
|
||||
services.gnome.gcr-ssh-agent.enable = lib.mkForce false;
|
||||
|
||||
# Failed to restart network-addresses-vboxnet0.service
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
virtualisation.virtualbox.host.enable = lib.mkDefault true;
|
||||
virtualisation.libvirtd.enable = lib.mkDefault true;
|
||||
virtualisation.spiceUSBRedirection.enable = lib.mkDefault true;
|
||||
programs.virt-manager.enable = lib.mkDefault true;
|
||||
# users.extraGroups.vboxusers.members = [ "krosh" ];
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.firefox.enable = lib.mkDefault true;
|
||||
programs.zsh.enable = true;
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
@@ -36,7 +37,7 @@
|
||||
};
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
enable = lib.mkDefault true;
|
||||
remotePlay.openFirewall =
|
||||
true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall =
|
||||
|
||||
+19
-28
@@ -1,36 +1,27 @@
|
||||
{ config, pkgs, ... }: {
|
||||
# Thunar (use the module)
|
||||
programs.thunar.enable = true; # :contentReference[oaicite:1]{index=1}
|
||||
programs.thunar.enable = true;
|
||||
|
||||
# If you are NOT running full XFCE, you need xfconf or Thunar settings won’t persist
|
||||
programs.xfconf.enable = true; # :contentReference[oaicite:2]{index=2}
|
||||
programs.xfconf.enable = true;
|
||||
|
||||
# Plugins (add them here, not in systemPackages)
|
||||
programs.thunar.plugins = with pkgs.xfce; [
|
||||
thunar-archive-plugin # right-click extract/compress
|
||||
thunar-volman # removable media handling
|
||||
]; # :contentReference[oaicite:3]{index=3}
|
||||
|
||||
# Mount/trash and thumbnails
|
||||
services.gvfs.enable = true; # :contentReference[oaicite:4]{index=4}
|
||||
services.tumbler.enable = true; # :contentReference[oaicite:5]{index=5}
|
||||
|
||||
# Removable drives typically rely on udisks2 + polkit
|
||||
services.udisks2.enable = true; # :contentReference[oaicite:6]{index=6}
|
||||
security.polkit.enable = true; # :contentReference[oaicite:7]{index=7}
|
||||
|
||||
# Usually already enabled, but harmless to be explicit on minimal installs
|
||||
services.dbus.enable = true;
|
||||
|
||||
# Set default applications for Thunar (and others) via xdg-mime
|
||||
environment.systemPackages = with pkgs; [
|
||||
gdk-pixbuf # image thumbnailer :contentReference[oaicite:5]{index=5}
|
||||
ffmpegthumbnailer # video thumbnails :contentReference[oaicite:6]{index=6}
|
||||
ffmpeg-headless # decoding support often used alongside ffmpegthumbnailer :contentReference[oaicite:7]{index=7}
|
||||
thunar-archive-plugin # ! not working
|
||||
thunar-volman
|
||||
];
|
||||
|
||||
# Make .thumbnailer definitions visible under the system profile
|
||||
environment.pathsToLink =
|
||||
[ "share/thumbnailers" ]; # :contentReference[oaicite:8]{index=8}
|
||||
services.gvfs.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
|
||||
services.udisks2.enable = true;
|
||||
security.polkit.enable = true;
|
||||
|
||||
services.dbus.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gdk-pixbuf
|
||||
ffmpegthumbnailer
|
||||
ffmpeg-headless
|
||||
];
|
||||
|
||||
environment.pathsToLink = [ "share/thumbnailers" ];
|
||||
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
services.displayManager.gdm.enable = lib.mkDefault true;
|
||||
services.desktopManager.gnome.enable = lib.mkDefault false;
|
||||
# programs.uwsm.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = lib.mkDefault true;
|
||||
withUWSM = false;
|
||||
|
||||
Reference in New Issue
Block a user