diff --git a/flake.nix b/flake.nix index 4b74eb0..67eb7ba 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,11 @@ # Hardware quirks and configurations nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + inputs.ragenix = { + url = "github:yaxitech/ragenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # Neovim configuration lazyvim-nixvim.url = "github:azuwis/lazyvim-nixvim"; @@ -50,6 +55,7 @@ nixpkgs-old-kernel, home-manager, disko, + ragenix, lazyvim-nixvim, nixos-hardware, vscode-server, @@ -73,7 +79,7 @@ { # Formatter for 'nix fmt' formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); - + # Generate NixOS configurations from hosts/default.nix nixosConfigurations = hosts.nixosConfigurations; diff --git a/hosts/default.nix b/hosts/default.nix index 1fcd511..35d7fb5 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -17,6 +17,7 @@ let nixpkgs = inputs.nixpkgs; lib = nixpkgs.lib; home-manager = inputs.home-manager; + ragenix = inpus.ragenix; disko = inputs.disko; # Modules shared by all hosts @@ -26,6 +27,7 @@ let ../users.nix ../sw home-manager.nixosModules.home-manager + ragenix.nixosModules.default disko.nixosModules.disko { system.stateVersion = "25.11"; diff --git a/sw/default.nix b/sw/default.nix index 43288ae..88b0d0e 100644 --- a/sw/default.nix +++ b/sw/default.nix @@ -73,6 +73,7 @@ in git oh-my-posh inputs.lazyvim-nixvim.packages.${stdenv.hostPlatform.system}.nvim + inputs.ragenix.${stdenv.hostPlatform.system}.default # Custom update script (writeShellScriptBin "update-system" '' HOSTNAME=$(hostname) @@ -92,7 +93,7 @@ in ]; } # Import Desktop or Kiosk modules based on type - (mkIf (cfg.type == "desktop") ( + (mkIf (cfg.type == "desktop") ( import ./desktop { inherit config