Compare commits

..

No commits in common. "0e370c0d628cb34ac2a7be0170d6b1cb25ba1faa" and "df2efb728d8a4152c745d579c9ad14c2dfadeca1" have entirely different histories.

4 changed files with 44 additions and 93 deletions

View File

@ -31,9 +31,6 @@
me.alacritty.enable = true;
me.ansible.enable = true;
me.ares.enable = true;
me.chromecast.enable = true;
me.chromium.enable = true;
me.emacs_flavor = "full";
me.graphical = true;
me.graphicsCardType = "amd";

View File

@ -8,23 +8,7 @@
{
imports = [ ];
options.me = {
ares.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install ares.";
};
};
config = lib.mkIf config.me.ares.enable (
lib.mkMerge [
{ }
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
ares
];
})
]
);
}

View File

@ -8,24 +8,7 @@
{
imports = [ ];
options.me = {
chromecast.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install chromecast.";
};
};
config = lib.mkIf config.me.chromecast.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
catt
];
}
(lib.mkIf config.me.graphical {
})
]
);
}

View File

@ -8,22 +8,12 @@
{
imports = [ ];
options.me = {
chromium.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install chromium.";
};
};
# TODO: Read https://bbs.archlinux.org/viewtopic.php?pid=2209507#p2209507 and apply desired settings.
config = lib.mkIf config.me.chromium.enable (
lib.mkMerge [
{ }
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
(chromium.override { enableWideVine = true; })
];
allowedUnfree = [
"chromium"
"chromium-unwrapped"
@ -59,7 +49,4 @@
# Enabling vulkan causes video to render as white
# nixpkgs.config.chromium.commandLineArgs = "--enable-features=Vulkan";
})
]
);
}