diff --git a/flake.lock b/flake.lock index 9b1380a..70e4a17 100644 --- a/flake.lock +++ b/flake.lock @@ -508,9 +508,30 @@ "hyprland": "hyprland", "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs_2", + "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix" } }, + "sops-nix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1766289575, + "narHash": "sha256-BOKCwOQQIP4p9z8DasT5r+qjri3x7sPCOq+FTjY8Z+o=", + "owner": "Mic92", + "repo": "sops-nix", + "rev": "9836912e37aef546029e48c8749834735a6b9dad", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "sops-nix", + "type": "github" + } + }, "spicetify-nix": { "inputs": { "nixpkgs": "nixpkgs_3", diff --git a/flake.nix b/flake.nix index ec79c84..2955304 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,12 @@ # Spicetify spicetify-nix.url = "github:Gerg-L/spicetify-nix"; + # Sops-nix + sops-nix = { + url = "github:Mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-darwin = { url = "github:nix-darwin/nix-darwin/master"; inputs.nixpkgs.follows = "nixpkgs"; @@ -21,7 +27,7 @@ }; }; - outputs = { self,nix-darwin ,nixpkgs, home-manager, spicetify-nix, ... }@inputs: { + outputs = { self, nix-darwin ,nixpkgs, ... }@inputs: { # use "nixos", or your hostname as the name of the configuration # it's a better practice than "default" shown in the video nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { @@ -29,6 +35,7 @@ modules = [ ./hosts/nixos/configuration.nix inputs.home-manager.nixosModules.default + ]; }; diff --git a/hosts/nixos/modules.nix b/hosts/nixos/modules.nix index 99d9b4b..1e34f2b 100644 --- a/hosts/nixos/modules.nix +++ b/hosts/nixos/modules.nix @@ -1,9 +1,10 @@ -{ pkgs ,... }: +{ pkgs, inputs, ... }: { # This file is used to import all modules required by this setup. imports = [ + inputs.sops-nix.nixosModules.sops ../../modules/nixos/wireless.nix # For the wifi ../../modules/nixos/locale.nix # For localisation options ../../modules/nixos/gamming/nvidia.nix # Nvidia (Drivers and Settings)