diff --git a/flake.nix b/flake.nix index 783eb30..dbb1723 100644 --- a/flake.nix +++ b/flake.nix @@ -59,12 +59,5 @@ inherit inputs nixpkgs nixpkgs-unstable home-manager nur hyprland vars; # Inherit inputs } ); - - homeConfigurations = ( # Nix Configurations - import ./nix { - inherit (nixpkgs) lib; - inherit inputs nixpkgs nixpkgs-unstable home-manager vars; - } - ); }; } diff --git a/nix/default.nix b/nix/default.nix deleted file mode 100644 index 838c310..0000000 --- a/nix/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -# -# These are the diffent profiles that can be used when using Nix on other distros. -# Home-Manager is used to list and customize packages. -# -# flake.nix -# └─ ./nix -# ├─ default.nix * -# └─ .nix -# -{ - lib, - inputs, - nixpkgs, - home-manager, - vars, - ... -}: let - system = "x86_64-linux"; # System Architecture - pkgs = nixpkgs.legacyPackages.${system}; -in { - pacman = home-manager.lib.homeManagerConfiguration { - inherit pkgs; - extraSpecialArgs = {inherit inputs vars;}; - modules = [ - # Modules Used - ./pacman.nix - { - home = { - username = "${vars.user}"; - homeDirectory = "/home/${vars.user}"; - packages = [pkgs.home-manager]; - stateVersion = "22.05"; - }; - } - ]; - }; -} diff --git a/nix/pacman.nix b/nix/pacman.nix deleted file mode 100644 index 455c0fe..0000000 --- a/nix/pacman.nix +++ /dev/null @@ -1,53 +0,0 @@ -# -# Nix Setup using Home-manager -# -# flake.nix -# └─ ./nix -# ├─ default.nix -# └─ pacman.nix * -# -{ - config, - inputs, - pkgs, - nixgl, - vars, - ... -}: { - home = { - packages = [ - pkgs.hello - ]; - - activation = { - # Rebuild Script - linkDesktopApplications = { - # Add Packages To System Menu - after = ["writeBoundary" "createXdgUserDirectories"]; - before = []; - data = "sudo /usr/bin/update-desktop-database"; # Updates Database - }; - }; - }; - - xdg = { - # Add Nix Packages to XDG_DATA_DIRS - enable = true; - systemDirs.data = ["/home/${vars.user}/.nix-profile/share"]; - }; - - nix = { - # Nix Package Manager Settings - settings = { - auto-optimise-store = true; - }; - package = pkgs.nixFlakes; # Enable Flakes - registry.nixpkgs.flake = inputs.nixpkgs; - extraOptions = '' - experimental-features = nix-command flakes - keep-outputs = true - keep-derivations = true - ''; - }; - nixpkgs.config.allowUnfree = true; # Allow Proprietary Software. -}