Compare commits
3 Commits
dc4377732f
...
60988d86d9
Author | SHA1 | Date |
---|---|---|
Jaculabilis | 60988d86d9 | |
Jaculabilis | 81da7ac072 | |
Jaculabilis | 00dbabb5ce |
|
@ -13,9 +13,11 @@ in
|
||||||
# Create a user for the server process to run under
|
# Create a user for the server process to run under
|
||||||
users.users.amanuensis = {
|
users.users.amanuensis = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
group = "amanuensis";
|
||||||
description = "Amanuensis server user";
|
description = "Amanuensis server user";
|
||||||
packages = [ python3-with-amanuensis-requires ];
|
packages = [ python3-with-amanuensis-requires ];
|
||||||
};
|
};
|
||||||
|
users.groups.amanuensis = {};
|
||||||
|
|
||||||
# Create the server process systemd unit
|
# Create the server process systemd unit
|
||||||
systemd.services.amanuensis = {
|
systemd.services.amanuensis = {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./amanuensis.nix
|
./amanuensis.nix
|
||||||
./redstring.nix
|
#./redstring.nix
|
||||||
./catacomb.nix
|
./catacomb.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
];
|
];
|
||||||
|
@ -23,6 +23,8 @@
|
||||||
};
|
};
|
||||||
boot.kernelParams = ["console=ttyS0"];
|
boot.kernelParams = ["console=ttyS0"];
|
||||||
|
|
||||||
|
nix.package = pkgs.nixFlakes;
|
||||||
|
|
||||||
networking.hostName = "empyrean";
|
networking.hostName = "empyrean";
|
||||||
|
|
||||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||||
|
@ -51,6 +53,7 @@
|
||||||
vim htop git tinc_pre python3
|
vim htop git tinc_pre python3
|
||||||
gitea
|
gitea
|
||||||
];
|
];
|
||||||
|
environment.variables.EDITOR = "vim";
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -115,8 +118,10 @@
|
||||||
|
|
||||||
users.users.tvb = {
|
users.users.tvb = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
group = "tvb";
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
};
|
};
|
||||||
|
users.groups.tvb = {};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -18,6 +18,7 @@ let
|
||||||
redstringUser = {
|
redstringUser = {
|
||||||
name = "redstring";
|
name = "redstring";
|
||||||
description = "redstring service user";
|
description = "redstring service user";
|
||||||
|
group = "redstring";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -71,6 +72,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
users.users.redstring = redstringUser;
|
users.users.redstring = redstringUser;
|
||||||
|
users.groups.redstring = {};
|
||||||
|
|
||||||
# Run the setup script on activation
|
# Run the setup script on activation
|
||||||
system.activationScripts.redstringSetup = "${redstringSetup}/bin/redstring-setup.sh";
|
system.activationScripts.redstringSetup = "${redstringSetup}/bin/redstring-setup.sh";
|
||||||
|
|
Loading…
Reference in New Issue