move chromium config to home level

This commit is contained in:
ulic-youthlic 2025-02-01 18:18:53 +08:00
parent 476e5dc69b
commit 04cfebada4
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; mpv.enable = true;
atuin.enable = true; atuin.enable = true;
obs.enable = true; obs.enable = true;
chromium.enable = true;
}; };
david = { david = {
@ -68,13 +69,4 @@
viu viu
just 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; atuin.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
obs.enable = true; obs.enable = true;
chromium.enable = true;
}; };
david = { david = {
@ -76,13 +77,4 @@
viu viu
just 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 ./nix.nix
./helix ./helix
./chromium.nix
./gpg ./gpg
./git.nix ./git.nix
./shell ./shell