Enable nix-index, add more firefox options, move readline settings into bash config

This commit is contained in:
Evie Litherland-Smith 2023-06-16 14:05:17 +01:00
parent 0b0010bf7a
commit 6cbc00f9ec
9 changed files with 19 additions and 35 deletions

View file

@ -20,12 +20,11 @@ in {
};
system.autoUpgrade.enable = lib.mkDefault false;
nixpkgs.config.allowUnfree = true;
users.users.root.shell = pkgs.zsh;
home-manager = {
useUserPackages = false;
useGlobalPkgs = true;
users.root = {
imports = [./home/env/readline.nix ./home/env/starship.nix ./home/env/zsh.nix];
imports = [./home/env/bash.nix ./home/env/starship.nix];
home.username = "root";
home.homeDirectory = "/root";
home.stateVersion = "22.11";

8
home/env/bash.nix vendored
View file

@ -1,5 +1,13 @@
{...}: {
programs.bash.enable = true;
programs.readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
programs.keychain.enableBashIntegration = true;
programs.starship.enableBashIntegration = true;
programs.nix-index.enableBashIntegration = true;
}

View file

@ -5,7 +5,6 @@
./direnv.nix
./fish.nix
./keychain.nix
./readline.nix
./starship.nix
./zsh.nix
];
@ -19,4 +18,5 @@
silver-searcher
distrobox
];
programs.nix-index.enable = true;
}

1
home/env/fish.nix vendored
View file

@ -18,4 +18,5 @@
};
programs.keychain.enableFishIntegration = true;
programs.starship.enableFishIntegration = true;
programs.nix-index.enableFishIntegration = true;
}

View file

@ -1,9 +0,0 @@
{...}: {
programs.readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
}

1
home/env/zsh.nix vendored
View file

@ -12,4 +12,5 @@
};
programs.keychain.enableZshIntegration = true;
programs.starship.enableZshIntegration = true;
programs.nix-index.enableZshIntegration = true;
}

View file

@ -13,6 +13,7 @@
"browser.warnOnQuitShortcut" = false;
"distribution.searchplugins.defaultLocale" = "en-GB";
"doh-rollout.home-region" = "GB";
"extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
"extensions.formautofill.creditCards.enabled" = false;
"general.useragent.locale" = "en-GB";
"intl.locale.requested" = "en-GB,en-US";
@ -64,23 +65,8 @@
force = true;
order = ["DuckDuckGo"];
engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
"MyNixOS" = {
urls = [{template = "https://mynixos.com/search?q={searchTerms}";}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};

View file

@ -1,6 +1,4 @@
{...}: {
imports = [
./neovim.nix
./lazygit.nix
];
{pkgs, ...}: {
imports = [./neovim.nix ./lazygit.nix];
home.packages = [pkgs.ranger];
}

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
imports = [./default.nix ./git/work.nix ./ssh/work.nix];
home.packages = with pkgs; [openfortivpn nomachine-client teams zoom-us];
home.packages = with pkgs; [openfortivpn nomachine-client teams-for-linux zoom-us];
programs.fish.functions.arch = ''
distrobox list | grep -i archlinux > /dev/null || distrobox create -n arch -i docker.io/library/archlinux:latest -y
distrobox enter arch