diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ce2f3d7 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "My hyprland configuration"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, home-manager, ... }: { + nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ./configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.yourusername = import ./home.nix; + } + ]; + }; + }; +}