From 9ec569a1b34f17d32894d51614cff84d8952d868 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Sat, 18 Oct 2025 13:12:33 +0530 Subject: setup flake!! now editing username is easier than ever! and no longer nix-channels.txt with the long script installation --- nixos/configuration.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'nixos/configuration.nix') diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 51274f9..d3a996a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,8 +1,8 @@ -{ config, pkgs, ... }: +{ config, pkgs, username, hostname, ... }: { imports = [ - ./hardware-configuration.nix + ../hardware-configuration.nix ./cachix.nix ./boot.nix ./services.nix @@ -14,20 +14,24 @@ ./languages ./apps.nix ./tmux.nix - ]; nix.settings = { cores = 6; max-jobs = 2; + experimental-features = "nix-command flakes"; + trusted-users = [ "root" username ]; + }; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; }; - networking.hostName = "pegasus"; + networking.hostName = hostname; networking.networkmanager.enable = true; nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = "nix-command flakes"; - nix.settings.trusted-users = [ "root" "aargh" ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions -- cgit v1.2.3