diff --git a/flake.lock b/flake.lock index 688855c..9f787b5 100644 --- a/flake.lock +++ b/flake.lock @@ -536,6 +536,22 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1769302137, + "narHash": "sha256-QEDtctEkOsbx8nlFh4yqPEOtr4tif6KTqWwJ37IM2ds=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "a351494b0e35fd7c0b7a1aae82f0afddf4907aa8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1769461804, @@ -644,6 +660,7 @@ "hyprland": "hyprland", "nix-citizen": "nix-citizen", "nix-darwin": "nix-darwin", + "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix" diff --git a/flake.nix b/flake.nix index d476aa6..bd67d12 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,9 @@ inputs = { # NixPKGS unstable nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - + + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + # Hyprland hyprland.url = "github:hyprwm/Hyprland"; @@ -47,6 +49,7 @@ nixosConfigurations.framework = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; modules = [ + inputs.nixos-hardware.nixosModules.framework-16-7040-amd ./hosts/framework/configuration.nix inputs.home-manager.nixosModules.default inputs.sops-nix.nixosModules.sops diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 946c8bc..c37a00e 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -1,12 +1,15 @@ { config, pkgs, inputs, ... }: +let + modules = import ../../modules; +in { imports = [ inputs.spicetify-nix.homeManagerModules.spicetify - ../../modules/home-manager/spicetify.nix + modules.hm.spicetify #../../modules/home-manager/zed.nix - ../../modules/home-manager/shell.nix + modules.hm.shell ]; diff --git a/hosts/framework/home.nix b/hosts/framework/home.nix index c264386..746df57 100644 --- a/hosts/framework/home.nix +++ b/hosts/framework/home.nix @@ -6,7 +6,7 @@ in { imports = [ ../common/home.nix - modules.hm.hyprland.nix + modules.hm.hyprland ]; home = { diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index c2eeff4..a3e501f 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -7,8 +7,8 @@ in # Home Manager needs a bit of information about you and the paths it should # manage. imports = [ - ../common/home.nix - ../../modules/home-manager/hyprland.nix + modules.common.home + modules.hm.hyprland ]; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release diff --git a/hosts/light/modules.nix b/hosts/light/modules.nix index ff92b87..f2c7549 100644 --- a/hosts/light/modules.nix +++ b/hosts/light/modules.nix @@ -1,7 +1,12 @@ +{pkgs, ...}: + +let + modules = import ../../modules; +in { imports = [ - ./hardware-configuration.nix - ../common/modules.nix - ../../modules/nixos/xfce.nix # Desktop Enviroment + #./hardware-configuration.nix + modules.common.module + modules.nixos.xfce # Desktop Enviroment ]; } diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index ba8ea3e..ec9a8b0 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -7,8 +7,8 @@ in # Home Manager needs a bit of information about you and the paths it should # manage. imports = [ - ../common/home.nix - modules.hm.hyprland.nix + modules.common.home + modules.hm.hyprland ]; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release diff --git a/hosts/nixos/modules.nix b/hosts/nixos/modules.nix index c3f075e..370079e 100644 --- a/hosts/nixos/modules.nix +++ b/hosts/nixos/modules.nix @@ -1,12 +1,14 @@ { pkgs, inputs, ... }: - +let + modules = import ../../modules; +in { # This file is used to import all modules required by this setup. imports = [ inputs.sops-nix.nixosModules.sops - ../common/modules.nix - ../../modules/nixos/secrets.nix # Sops + modules.common.module + modules.nixos.secrets # Sops # ../../modules/nixos/wireless.nix # For the wifi ../../modules/nixos/gaming/nvidia.nix # Nvidia (Drivers and Settings) ../../modules/nixos/gaming/starCitizen.nix diff --git a/modules/home-manager/Hyprland/scripts.nix b/modules/home-manager/Hyprland/scripts.nix index 373f3a1..8439e14 100644 --- a/modules/home-manager/Hyprland/scripts.nix +++ b/modules/home-manager/Hyprland/scripts.nix @@ -2,7 +2,7 @@ pkgs.writeShellApplication { name = "VolumeManager"; - runtinmeInputs = [ + runtimeInputs = [ pkgs.wireplumber ];