From 699511e864c4ee4fc208bd3465ece947c3b6dacb Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Fri, 31 Jan 2025 16:48:48 +0500 Subject: [PATCH] chore: NixOS | cleanup unused vars and references --- nixos/master/configuration.nix | 3 +-- nixos/master/flake.nix | 14 +++++++------- nixos/master/hardware-configuration.nix | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/nixos/master/configuration.nix b/nixos/master/configuration.nix index 4e9c0ce..94e67fa 100644 --- a/nixos/master/configuration.nix +++ b/nixos/master/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page, on # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). -{ config, lib, pkgs, meta, ... }: +{ pkgs, meta, ... }: { imports = @@ -165,5 +165,4 @@ # # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . system.stateVersion = "24.05"; # Did you read the comment? - } diff --git a/nixos/master/flake.nix b/nixos/master/flake.nix index 7be07a7..0032a96 100644 --- a/nixos/master/flake.nix +++ b/nixos/master/flake.nix @@ -8,7 +8,7 @@ disko.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, disko, ... }@inputs: let + outputs = { nixpkgs, disko, ... }: let nodes = [ "homelab-0" "homelab-1" @@ -23,12 +23,12 @@ }; system = "x86_64-linux"; modules = [ - # Modules - disko.nixosModules.disko - ./hardware-configuration.nix - ./disko-config.nix - ./configuration.nix - ]; + # Modules + disko.nixosModules.disko + ./hardware-configuration.nix + ./disko-config.nix + ./configuration.nix + ]; }; }) nodes); }; diff --git a/nixos/master/hardware-configuration.nix b/nixos/master/hardware-configuration.nix index 53c8c9d..422af6e 100644 --- a/nixos/master/hardware-configuration.nix +++ b/nixos/master/hardware-configuration.nix @@ -1,7 +1,7 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, modulesPath, ... }: { imports = [(modulesPath + "/installer/scan/not-detected.nix")];