home(chrome): move relevant nixos configuration

This commit is contained in:
514fpv 2024-01-03 16:42:10 +08:00
parent 45c7976d5c
commit 18aba864da
Signed by: koishi
SSH key fingerprint: SHA256:VkIdW3jUIiqecV2WNAje2fGU5lEhN0XZ58DN0NS4pv0
2 changed files with 9 additions and 7 deletions

View file

@ -16,12 +16,6 @@ in {
# this module passes sway-specific config values
{ passthrough.sway = cfg; }
];
users.home.persist = mkIf gui {
directories = [
".config/google-chrome"
];
};
users.adminGroups = mkIf gui [ "video" ];
# themes and icons
@ -45,7 +39,6 @@ in {
security = mkIf gui {
polkit.enable = true;
chromiumSuidSandbox.enable = true;
pam.services.swaylock = { };
};
fonts.enableDefaultPackages = mkIf gui true;