Add nix-community cachix, some tweaks

This commit is contained in:
Erwin Boskma 2022-02-15 16:03:36 +01:00
parent e0ee25d30b
commit c016a10e62
Signed by: erwin
GPG key ID: 270B20D17394F7E5
3 changed files with 484 additions and 842 deletions

File diff suppressed because it is too large Load diff

View file

@ -16,6 +16,11 @@ in
Enable home-manager for this desktop
'';
};
terminal = mkOption {
type = types.str;
default = "foot";
description = "Terminal emulator to use. Specify the .desktop filename, e.g. 'foot' or 'Alacritty'";
};
};
config = mkIf cfg.enable {
@ -114,6 +119,7 @@ in
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/chrome" = "firefox.desktop";
"x-scheme-handler/terminal" = "${cfg.terminal}.desktop";
"text/html" = "firefox.desktop";
"application/x-extension-htm" = "firefox.desktop";
"application/x-extension-html" = "firefox.desktop";

View file

@ -22,6 +22,14 @@ in
settings = {
auto-optimise-store = true;
allowed-users = [ "root" ];
substituters = [
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
gc = {