Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #47

Merged
merged 8 commits into from
Feb 15, 2024
Merged

Dev #47

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 57 additions & 57 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 38 additions & 41 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,29 @@
};
};

outputs = inputs:
let
inherit (inputs) hyprland nixpkgs;
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];

# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'.
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;

snowfall = {
meta = {
name = "nixdots";
title = "nixdots";
};
outputs = inputs: let
inherit (inputs) hyprland nixpkgs;
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];

# Helper function to generate an attrset '{ x86_64-linux = f "x86_64-linux"; ... }'.
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;

namespace = "custom";
snowfall = {
meta = {
name = "nixdots";
title = "nixdots";
};

namespace = "custom";
};
in
};
in
lib.mkFlake {
inherit inputs;
src = ./.;
Expand All @@ -98,11 +97,11 @@
# integrates nur within Home-Manager
nur =
import
(builtins.fetchTarball {
url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
sha256 = "sha256:1gr3l5fcjsd7j9g6k9jamby684k356a36h82cwck2vcxf8yw8xa0";
})
{ inherit pkgs; };
(builtins.fetchTarball {
url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
sha256 = "sha256:0ia5fbhrq2r1f6z5yxf4nxg8qx37360r8awfgjylckavhj76cizc";
})
{inherit pkgs;};
};
};

Expand Down Expand Up @@ -197,21 +196,19 @@
# deploy-lib.deployChecks inputs.self.deploy)
# inputs.deploy-rs.lib;

templates = import ./templates { };

devShells = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
git
nixpkgs-fmt
statix
];
};
});
templates = import ./templates {};

devShells = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.mkShell {
buildInputs = with pkgs; [
git
nixpkgs-fmt
statix
];
};
});
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
};
}
Loading