Skip to content

frostplexx/nixkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Collection of various nix utilities

Installation

Add it to your flake.nix inputs:

nix-utils = {
    url = "github:frostplexx/nixkit";
    # or for local development:
    # url = "path:/Users/daniel/Developer/nix-utils";
};

Add the home manager module:

home-manager = {
    sharedModules = [
        inputs.nixkit.homeModules.default
    ];
};

Add the nix module:

On NixOS:

modules = [
    inputs.nixkit.nixosModules.default
];

On macOS:

modules = [
    inputs.nixkit.darwinModules.default
];

Home Manager Modules

Set Default Browser

To set the default browser on macOS and Linux use the following:

# Enable and configure the default browser
programs.default-browser = {
    enable = true;
    browser = "firefox"; # Or any other browser name
};

ndcli - cli tool for Dim

{
  programs.ndcli = {
    enable = true;
    username = "johndoe"; # Your Dim username
  };
}

Source: https://github.com/ionos-cloud/dim/tree/master/ndcli

System Modules

Darwin

Hyperkey

hyperkey is a simple service that maps caps-lock to cmd+opt+ctrl or optionally cmd+opt+ctrl+shift. Simply enable it using the following snippet inside your configuration.nix:

services.hyperkey = {
    enable = true;
    normalQuickPress = true; # Quick press of Caps Lock to toggle it
    includeShift = false; # Hyper key will be Cmd+Ctrl+Opt (without Shift)
};

On first start it will ask for accessibility permission. Afterward you may need to restart the service by running killall hyperkey for the permissions to take effect.

Custom Icons

You can configure custom icons on macOS using the following snippet:

 environment.customIcons = {
    enable = true;
    icons = [
      {
        path = "/Applications/Notion.app";
        icon = ./icons/notion.icns;
      }
    ];
  };

Source: https://github.com/ryanccn/nix-darwin-custom-icons

NixOS

Shared

opsops

SOPS but easy and with 1Password integration:

  programs = {
    opsops.enable = true;
  };

Source: https://github.com/frostplexx/opsops

Declare Folders

SOON

Auto Fetch Flake and Update

SOON

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •