Compare commits

...

2 commits

Author SHA1 Message Date
04cfebada4
move chromium config to home level 2025-02-01 18:18:53 +08:00
476e5dc69b
move obs config to home level 2025-02-01 18:13:10 +08:00
5 changed files with 52 additions and 32 deletions

View file

@ -24,6 +24,8 @@
sops.enable = true; sops.enable = true;
mpv.enable = true; mpv.enable = true;
atuin.enable = true; atuin.enable = true;
obs.enable = true;
chromium.enable = true;
}; };
david = { david = {
@ -36,13 +38,6 @@
home.homeDirectory = "/home/${unixName}"; home.homeDirectory = "/home/${unixName}";
home.stateVersion = "24.11"; home.stateVersion = "24.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
home.packages = with pkgs; [ home.packages = with pkgs; [
tealdeer tealdeer
@ -74,13 +69,4 @@
viu viu
just just
]; ];
programs.chromium = {
enable = true;
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime=true"
"--enable-features=UseOzonePlatform"
];
};
} }

View file

@ -33,6 +33,8 @@
kvm.enable = true; kvm.enable = true;
atuin.enable = true; atuin.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
obs.enable = true;
chromium.enable = true;
}; };
david = { david = {
@ -45,13 +47,6 @@
home.homeDirectory = "/home/${unixName}"; home.homeDirectory = "/home/${unixName}";
home.stateVersion = "24.11"; home.stateVersion = "24.11";
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
home.packages = with pkgs; [ home.packages = with pkgs; [
tealdeer tealdeer
ripgrep ripgrep
@ -82,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
@ -29,6 +30,7 @@
./swaync.nix ./swaync.nix
./swaylock.nix ./swaylock.nix
./thunderbird.nix ./thunderbird.nix
./obs.nix
]; ];
options = { options = {

25
home/modules/obs.nix Normal file
View file

@ -0,0 +1,25 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.youthlic.programs.obs;
in
{
options = {
youthlic.programs.obs = {
enable = lib.mkEnableOption "obs";
};
};
config = lib.mkIf cfg.enable {
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
};
}