Files

67 lines
1.4 KiB
Nix

{ inputs, config, ... }:
let
account = config.repo.account;
in
{
flake.modules.nixos.nix =
{ ... }:
{
nixpkgs.config.allowUnfree = true;
nix = {
gc.automatic = true;
optimise.automatic = true;
registry.nixpkgs.flake = inputs.nixpkgs;
channel.enable = false;
settings = {
trusted-users = [ "@wheel" ];
use-xdg-base-directories = true;
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
};
};
};
flake.modules.homeManager.nix =
{ pkgs, ... }:
{
imports = [
inputs.nix-index-database.homeModules.default
];
home.packages = [
(pkgs.writeShellApplication {
name = "ns";
runtimeInputs = [
pkgs.fzf
pkgs.nix-search-tv
];
text = builtins.readFile "${pkgs.nix-search-tv.src}/nixpkgs.sh";
})
];
programs.nix-index.enableZshIntegration = false;
programs.nix-index-database.comma.enable = true;
programs.television = {
enable = true;
enableZshIntegration = false;
};
programs.nix-search-tv = {
enable = true;
enableTelevisionIntegration = true;
};
programs.nh = {
enable = true;
flake = account.nixosConfigurationPath;
};
};
}