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; system.autoUpgrade.enable = lib.mkDefault false;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.root.shell = pkgs.zsh;
home-manager = { home-manager = {
useUserPackages = false; useUserPackages = false;
useGlobalPkgs = true; useGlobalPkgs = true;
users.root = { 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.username = "root";
home.homeDirectory = "/root"; home.homeDirectory = "/root";
home.stateVersion = "22.11"; home.stateVersion = "22.11";

8
home/env/bash.nix vendored
View file

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

View file

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

1
home/env/fish.nix vendored
View file

@ -18,4 +18,5 @@
}; };
programs.keychain.enableFishIntegration = true; programs.keychain.enableFishIntegration = true;
programs.starship.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.keychain.enableZshIntegration = true;
programs.starship.enableZshIntegration = true; programs.starship.enableZshIntegration = true;
programs.nix-index.enableZshIntegration = true;
} }

View file

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

View file

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

View file

@ -1,6 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./default.nix ./git/work.nix ./ssh/work.nix]; 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 = '' programs.fish.functions.arch = ''
distrobox list | grep -i archlinux > /dev/null || distrobox create -n arch -i docker.io/library/archlinux:latest -y distrobox list | grep -i archlinux > /dev/null || distrobox create -n arch -i docker.io/library/archlinux:latest -y
distrobox enter arch distrobox enter arch