aboutsummaryrefslogtreecommitdiff
path: root/nixos/configuration.nix
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2025-10-18 13:12:33 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2025-10-18 13:12:33 +0530
commit9ec569a1b34f17d32894d51614cff84d8952d868 (patch)
treed5f3c27bd4654d90a69f77a569ef1d67b76861dc /nixos/configuration.nix
parent1638c8711b4a56347d0c1a4da4d949d71978915c (diff)
setup flake!!
now editing username is easier than ever! and no longer nix-channels.txt with the long script installation
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r--nixos/configuration.nix16
1 files changed, 10 insertions, 6 deletions
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
- <home-manager/nixos>
];
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