aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2025-10-27 11:46:45 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2025-10-27 11:46:45 +0530
commitb49553a6fd6a1376b61a57f3e414099e86e513cc (patch)
treed314a6ce0e38e25ea532159bd70a36e1354431a8 /flake.nix
parent84085c5ef88df567149c09a0c912da6d7254790a (diff)
nvidia configurable
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 8835d6b..388a236 100644
--- a/flake.nix
+++ b/flake.nix
@@ -15,6 +15,7 @@
system = "x86_64-linux";
username = "aargh";
hostname = "pegasus";
+ nvidia = true;
# This is where I have keep the dotfiles folder, replace it accordingly
symlinkRoot = "/home/${username}/dotfiles";
@@ -30,7 +31,9 @@
in {
nixosConfigurations.main = nixpkgs.lib.nixosSystem {
inherit system;
- specialArgs = { inherit inputs username hostname unstable symlinkRoot; };
+ specialArgs = {
+ inherit inputs username hostname unstable symlinkRoot nvidia;
+ };
modules = [
./nixos/configuration.nix
@@ -38,7 +41,9 @@
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
- home-manager.extraSpecialArgs = { inherit username unstable symlinkRoot; };
+ home-manager.extraSpecialArgs = {
+ inherit username unstable symlinkRoot;
+ };
home-manager.backupFileExtension = "hm-backup";
home-manager.users.${username} = import ./home-manager/home.nix;
}