Fix everything.
This commit is contained in:
parent
11075719cb
commit
3d25d316fe
118 changed files with 180 additions and 244 deletions
6
system/accounts/default.nix
Normal file
6
system/accounts/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./users
|
||||
./groups
|
||||
];
|
||||
}
|
4
system/accounts/groups/default.nix
Normal file
4
system/accounts/groups/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./nfsShare ];
|
||||
}
|
4
system/accounts/groups/nfsShare/default.nix
Normal file
4
system/accounts/groups/nfsShare/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
users.groups.nfsShare.gid = 983;
|
||||
}
|
9
system/accounts/users/custom/default.nix
Normal file
9
system/accounts/users/custom/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ home-manager, ... }:
|
||||
{
|
||||
imports = [
|
||||
./jules
|
||||
./jimbo
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
}
|
27
system/accounts/users/custom/jimbo/default.nix
Normal file
27
system/accounts/users/custom/jimbo/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
users.users.jimbo = {
|
||||
hashedPassword = config.secrets.mainAccPass;
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC2lMkUd+BbXITE5LTg94hEzmA6UKsIIbaf5YOjGoLzl"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIFGHaxdTeC1xnTx2BY5LLR5LxhdSkmYoWuOeEuRIz0k"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
|
||||
];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"input"
|
||||
"disk"
|
||||
"dialout"
|
||||
"kvm"
|
||||
"libvirtd"
|
||||
"qemu-libvirtd"
|
||||
"nginx"
|
||||
"nfsShare"
|
||||
];
|
||||
uid = 1000;
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
||||
home-manager.users.jimbo = import ../../../../../home/jimbo;
|
||||
}
|
26
system/accounts/users/custom/jules/default.nix
Normal file
26
system/accounts/users/custom/jules/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
users.users.jules = {
|
||||
hashedPassword = config.secrets.mainAccPass;
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHwxJcAWuHkKy/Ar37aIoqg34CDcZu7/bh978nYkOgzj jules@jules-pc"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEOszCNP+6rkIS75GyFVhn9o6QpUuGdx/J4rjzROrpSl jules@xeta"
|
||||
];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"input"
|
||||
"disk"
|
||||
"dialout"
|
||||
"kvm"
|
||||
"libvirtd"
|
||||
"qemu-libvirtd"
|
||||
"nginx"
|
||||
"nfsShare"
|
||||
];
|
||||
uid = 1001;
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
#home-manager.users.jimbo = import ../../../../../home/jimbo;
|
||||
}
|
9
system/accounts/users/default.nix
Normal file
9
system/accounts/users/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./custom
|
||||
./system
|
||||
];
|
||||
|
||||
users.mutableUsers = false;
|
||||
}
|
9
system/accounts/users/system/default.nix
Normal file
9
system/accounts/users/system/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./jellyfin
|
||||
./liquidsoap
|
||||
./nextcloud
|
||||
./nginx
|
||||
];
|
||||
}
|
12
system/accounts/users/system/jellyfin/default.nix
Normal file
12
system/accounts/users/system/jellyfin/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
{
|
||||
users = {
|
||||
users.jellyfin = {
|
||||
group = "jellyfin";
|
||||
extraGroups = [ "nfsShare" ];
|
||||
isSystemUser = true;
|
||||
uid = 983;
|
||||
};
|
||||
groups.jellyfin = {};
|
||||
};
|
||||
}
|
12
system/accounts/users/system/liquidsoap/default.nix
Normal file
12
system/accounts/users/system/liquidsoap/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
{
|
||||
users = {
|
||||
users.liquidsoap = {
|
||||
group = "liquidsoap";
|
||||
extraGroups = [ "nginx" ];
|
||||
isSystemUser = true;
|
||||
uid = 155;
|
||||
};
|
||||
groups.liquidsoap = {};
|
||||
};
|
||||
}
|
12
system/accounts/users/system/nextcloud/default.nix
Normal file
12
system/accounts/users/system/nextcloud/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ ... }:
|
||||
{
|
||||
users = {
|
||||
users.nextcloud = {
|
||||
group = "nextcloud";
|
||||
extraGroups = [ "nfsShare" ];
|
||||
isSystemUser = true;
|
||||
uid = 218;
|
||||
};
|
||||
groups.nextcloud = {};
|
||||
};
|
||||
}
|
15
system/accounts/users/system/nginx/default.nix
Normal file
15
system/accounts/users/system/nginx/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ ... }:
|
||||
{
|
||||
users = {
|
||||
users.nginx = {
|
||||
group = "nginx";
|
||||
extraGroups = [
|
||||
"turnserver"
|
||||
"virtualMail"
|
||||
];
|
||||
isSystemUser = true;
|
||||
uid = 60;
|
||||
};
|
||||
groups.nginx = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue