Skip to content

Commit

Permalink
updated website builder and formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Jan 21, 2025
1 parent 34813ac commit e0a6179
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 22 deletions.
6 changes: 3 additions & 3 deletions flake.lock

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

46 changes: 30 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
nixosModules.default = import ./modules/nixos;

homeManagerModules.default = {
imports = [ ./modules/home-manager ];
imports = [./modules/home-manager];
config._module.args = {inherit inputs;};
};

Expand All @@ -63,23 +63,37 @@
});

packages = forAllSystems ({pkgs}: let
website = website-builder.lib {
pkgs = pkgs;
src = ./.;
headerTitle = "Rasmus Kirk";
standalonePages = [{
website = website-builder.lib {
pkgs = pkgs;
src = ./.;
headerTitle = "Rasmus Kirk";
standalonePages = [
{
inputFile = ./docs/index.md;
title = "Kirk Modules - Option Documentation";
}];
navbar = [
{ title = "Home"; location = "/"; }
{ title = "Nixos"; location = "/nixos-options"; }
{ title = "Home Manager"; location = "/home-manager-options"; }
{ title = "Github"; location = "https://github.com/rasmus-kirk/nix-config"; }
];
homemanagerModules = ./modules/home-manager;
nixosModules = ./modules/nixos;
};
}
];
navbar = [
{
title = "Home";
location = "/";
}
{
title = "Nixos";
location = "/nixos-options";
}
{
title = "Home Manager";
location = "/home-manager-options";
}
{
title = "Github";
location = "https://github.com/rasmus-kirk/nix-config";
}
];
homemanagerModules = ./modules/home-manager;
nixosModules = ./modules/nixos;
};
in {
default = website.package;
debug = website.loop;
Expand Down
7 changes: 5 additions & 2 deletions modules/home-manager/homeManagerScripts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ with lib; let

hm = pkgs.writeShellApplication {
name = "hm";
runtimeInputs = with pkgs; [ fzf git ];
runtimeInputs = with pkgs; [fzf git];
text = ''
command="''${1:-}"
# Check if a parameter is provided
Expand Down Expand Up @@ -163,7 +163,10 @@ in {

# Use the pinned nixpkgs version that is already used, when using `nix shell nixpkgs#package`
nix.registry.nixpkgs = {
from = { id = "nixpkgs"; type = "indirect"; };
from = {
id = "nixpkgs";
type = "indirect";
};
flake = inputs.nixpkgs;
};

Expand Down
2 changes: 1 addition & 1 deletion modules/home-manager/yazi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ in {
desc = "Create a new terminal with yazi open";
}
{
on = [ "2" ];
on = ["2"];
run = "plugin switch-create-tab --args=1";
}
# Selection
Expand Down

0 comments on commit e0a6179

Please sign in to comment.