Add nix-community cachix, some tweaks
This commit is contained in:
parent
e0ee25d30b
commit
c016a10e62
3 changed files with 484 additions and 842 deletions
File diff suppressed because it is too large
Load diff
|
@ -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";
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue