move chromium config to home level

This commit is contained in:
ulic-youthlic 2025-02-01 18:18:53 +08:00
parent 6dd9ceb771
commit 77d70dcf2e
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 24 additions and 18 deletions

View file

@ -25,6 +25,7 @@
mpv.enable = true;
atuin.enable = true;
obs.enable = true;
chromium.enable = true;
};
david = {
@ -68,13 +69,4 @@
viu
just
];
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime=true"
"--enable-features=UseOzonePlatform"
];
};
}

View file

@ -34,6 +34,7 @@
atuin.enable = true;
thunderbird.enable = true;
obs.enable = true;
chromium.enable = true;
};
david = {
@ -76,13 +77,4 @@
viu
just
];
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime=true"
"--enable-features=UseOzonePlatform"
];
};
}

21
home/modules/chromium.nix Normal file
View file

@ -0,0 +1,21 @@
{ lib, config, ... }:
let
cfg = config.youthlic.programs.chromium;
in
{
options = {
youthlic.programs.chromium = {
enable = lib.mkEnableOption "chromium";
};
};
config = lib.mkIf cfg.enable {
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime=true"
"--enable-features=UseOzonePlatform"
];
};
};
}

View file

@ -11,6 +11,7 @@
++ [
./nix.nix
./helix
./chromium.nix
./gpg
./git.nix
./shell