Move more things around
This commit is contained in:
parent
36c3f778c8
commit
94c28dbb8b
11 changed files with 17 additions and 26 deletions
|
@ -1,7 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./users
|
|
||||||
./groups
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
imports = [ ./nfsShare ];
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
users.groups.nfsShare.gid = 983;
|
|
||||||
}
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./accounts
|
|
||||||
./devices
|
./devices
|
||||||
./programs
|
./programs
|
||||||
./secrets
|
./secrets
|
||||||
./services
|
./services
|
||||||
./settings
|
./settings
|
||||||
|
./users
|
||||||
];
|
];
|
||||||
|
|
||||||
options.system = with lib; {
|
options.system = with lib; {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [ ./user ];
|
||||||
|
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = config.system.fileserver.enable;
|
enable = config.system.fileserver.enable;
|
||||||
exports = ''
|
exports = ''
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
{
|
||||||
|
users.groups.nfsShare.gid = lib.mkIf config.services.nfs.server.enable 983;
|
||||||
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./mastodon
|
./mastodon
|
||||||
./owncast
|
./owncast
|
||||||
./spacebar
|
#./spacebar
|
||||||
];
|
];
|
||||||
|
|
||||||
options.system.socialserver.enable = lib.mkEnableOption "Enable social media like services";
|
options.system.socialserver.enable = lib.mkEnableOption "Enable social media like services";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, spacebar, ... }:
|
{ config, lib, pkgs, spacebar, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
#./nginx
|
./nginx
|
||||||
./user
|
./user
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
users = lib.mkIf config.system.socialserver.enable {
|
users = lib.mkIf config.systemd.services.spacebar-server.enable {
|
||||||
users.spacebar = {
|
users.spacebar = {
|
||||||
group = "spacebar";
|
group = "spacebar";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
openssh.authorizedKeys.keyFiles = [
|
openssh.authorizedKeys.keyFiles = [
|
||||||
../../../../../hosts/tower/id_ed25519.pub
|
../../../../hosts/tower/id_ed25519.pub
|
||||||
|
|
||||||
../../../../../hosts/envy/id_ed25519.pub
|
../../../../hosts/envy/id_ed25519.pub
|
||||||
../../../../../hosts/pear/id_ed25519.pub
|
../../../../hosts/pear/id_ed25519.pub
|
||||||
../../../../../hosts/redmond/id_ed25519.pub
|
../../../../hosts/redmond/id_ed25519.pub
|
||||||
|
|
||||||
../../../../../hosts/midas/id_ed25519.pub
|
../../../../hosts/midas/id_ed25519.pub
|
||||||
../../../../../hosts/prophet/id_ed25519.pub
|
../../../../hosts/prophet/id_ed25519.pub
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
|
||||||
|
@ -43,6 +43,6 @@
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users."${config.sysusers.main}" = import ../../../../home;
|
home-manager.users."${config.sysusers.main}" = import ../../../home;
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue