mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
profiles/base: further wheel allows
This commit is contained in:
parent
639a6fa7bb
commit
9bca2d6940
3 changed files with 10 additions and 8 deletions
|
|
@ -22,13 +22,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
network = {
|
||||
yggdrasil = {
|
||||
enable = true;
|
||||
pubkey = "89771aa2f15fce6bbc3548f95be360cf59657d299837b10adf53944b54e8f121";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts =
|
||||
let
|
||||
splashy = pkgs.host-splash-site config.networking.hostName;
|
||||
|
|
|
|||
|
|
@ -3,11 +3,20 @@
|
|||
{
|
||||
security.sudo.wheelNeedsPassword = lib.mkForce false;
|
||||
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
|
||||
imports = with meta; [
|
||||
users.kat.base
|
||||
];
|
||||
|
||||
users.users.root = {
|
||||
shell = pkgs.zsh;
|
||||
hashedPassword =
|
||||
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";
|
||||
openssh.authorizedKeys.keys = with pkgs.lib;
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ in
|
|||
in
|
||||
{
|
||||
enable = true;
|
||||
nixos.ipv6.address = mkIf (tf.state.resources ? ${tf.resources.${config.networking.hostName}.out.reference}) addr_ipv6_nix;
|
||||
nixos.ipv6.address = mkIf tf.state.enable addr_ipv6_nix;
|
||||
tf.ipv6.address = tf.resources."${config.networking.hostName}_ipv6".refAttr "ip_address";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue