refactor: rename global from faucet

This commit is contained in:
514fpv 2024-01-07 22:01:31 +08:00
parent 4b12d60e44
commit b01142144e
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
31 changed files with 40 additions and 40 deletions

View file

@ -2,6 +2,6 @@
, ... }: {
# this module passes openssh public keys to home-manager
users.homeModules = [ {
passthrough.publicKeys = config.faucet.auth.openssh.publicKeys;
passthrough.publicKeys = config.global.auth.openssh.publicKeys;
} ];
}

View file

@ -2,7 +2,7 @@
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
gui = with config.global.gui; ( enable && session );
in {
users.home.persist.directories = mkIf gui [ ".config/google-chrome" ];
security.chromiumSuidSandbox.enable = mkIf gui true;

View file

@ -2,7 +2,7 @@
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
gui = with config.global.gui; ( enable && session );
in {
config = {
users.homeModules = [

View file

@ -72,7 +72,7 @@ in {
description = with opts; mkIf (description != null) description;
extraGroups = mkIf opts.admin cfg.adminGroups;
openssh.authorizedKeys.keys = mkIf (opts.sshLogin && config.services.openssh.enable)
config.faucet.auth.openssh.publicKeys;
config.global.auth.openssh.publicKeys;
hashedPasswordFile = "/nix/persist/shadow/${name}";
shell = pkgs.zsh;
isNormalUser = mkIf (name != "root") true;

View file

@ -2,7 +2,7 @@
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
gui = with config.global.gui; ( enable && session );
in mkIf gui {
services.xserver.displayManager.sessionPackages = [
(pkgs.writeTextFile {

View file

@ -2,7 +2,7 @@
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
gui = with config.global.gui; ( enable && session );
in {
users.home.persist.directories = [ ] ++
optionals gui [

View file

@ -2,7 +2,7 @@
, lib
, config
, ... }: with lib; let
gui = with config.faucet.gui; ( enable && session );
gui = with config.global.gui; ( enable && session );
in mkIf gui {
programs.virt-manager.enable = true;
}