added gc options

This commit is contained in:
Polen 2025-05-23 14:20:05 -04:00
parent 3f49f8436b
commit bec67c3c89

View file

@ -1,11 +1,13 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
config,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -19,17 +21,23 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelModules = [ "msr" ];
boot.kernelModules = ["msr"];
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "polen" ];
# nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
nix = {
settings.experimental-features = ["nix-command" "flakes"];
settings.trusted-users = ["polen"];
# settings.extra-platforms = config.boot.binfmt.emulatedSystems;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 15d";
};
};
# boot.binfmt.emulatedSystems = ["aarch64-linux"];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
@ -52,14 +60,14 @@
services.displayManager.sddm = {
enable = true;
theme = "${import ./sddm-theme.nix { inherit pkgs; }}";
theme = "${import ./sddm-theme.nix {inherit pkgs;}}";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.polen = {
isNormalUser = true;
description = "polen";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = ["networkmanager" "wheel"];
shell = pkgs.zsh;
};
@ -115,7 +123,7 @@
programs.seahorse.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
@ -154,5 +162,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}