From 231141e14c70d2d3d524581ecf3ce7dd14876b5b Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:17:14 +0200 Subject: [PATCH] Remove unnecessary template files --- flake.nix | 7 ------- nix/default.nix | 37 ---------------------------------- nix/pacman.nix | 53 ------------------------------------------------- 3 files changed, 97 deletions(-) delete mode 100644 nix/default.nix delete mode 100644 nix/pacman.nix 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. -}