summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..812dfad
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,50 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
+
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ # hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
+ # waybar-hyprland.url = "github:hyprwm/hyprland";
+ nur.url = "github:nix-community/NUR";
+ stylix.url = "github:danth/stylix";
+ # matugen.url = "github:InioX/matugen?ref=v2.2.0";
+ # xdg-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
+ systems.url = "github:nix-systems/default-linux";
+ };
+
+ outputs = { self, nixpkgs, home-manager, stylix, systems, ... } @ inputs:
+ let
+ inherit (self) outputs;
+ lib = nixpkgs.lib // home-manager.lib;
+ forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
+ pkgsFor = lib.genAttrs (import systems) (
+ system: import nixpkgs { inherit system; }
+ );
+ in
+ {
+ inherit lib;
+
+ defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
+
+ homeConfigurations = {
+ fuwn = home-manager.lib.homeManagerConfiguration {
+ pkgs = pkgsFor.x86_64-linux;
+
+ modules = [
+ stylix.homeManagerModules.stylix
+ ./home/fuwn/home.nix
+ ];
+
+ extraSpecialArgs = {
+ inherit inputs outputs;
+ };
+ };
+ };
+
+ formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra;
+ };
+}