Add basic services necessary for running projects
diff --git a/default/configuration.nix b/default/configuration.nix
index 75d091a..8f699db 100644
--- a/default/configuration.nix
+++ b/default/configuration.nix
@@ -85,9 +85,18 @@
users.users.nucleus = {
isSystemUser = true;
createHome = true;
+ home = "/services/nucleus";
group = "clicks";
shell = pkgs.bashInteractive;
};
+ users.users.websites = {
+ isSystemUser = true;
+ createHome = true;
+ home = "/services/websites";
+ group = "clicks";
+ shell = pkgs.bashInteractive;
+ };
+ users.groups.clicks = { };
programs.zsh.enable = true;
# List packages installed in system profile. To search, run:
diff --git a/default/flake.nix b/default/flake.nix
index 15d1309..ddbaf5f 100644
--- a/default/flake.nix
+++ b/default/flake.nix
@@ -5,19 +5,21 @@
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
- packages.x86_64-linux.nixosConfigurations.nixos = let
+ packages.x86_64-linux.nixosConfigurations.nixos =
+ let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
- in nixpkgs.lib.nixosSystem {
+ in
+ nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
- {
- nixpkgs.config.allowUnfree = true;
- services.mongodb.enable = true;
- services.mongodb.package = pkgs.mongodb-6_0;
- }
- ./configuration.nix
+ {
+ nixpkgs.config.allowUnfree = true;
+ services.mongodb.enable = true;
+ services.mongodb.package = pkgs.mongodb-6_0;
+ }
+ ./configuration.nix
];
- };
+ };
};
}
diff --git a/default/hardware-configuration.nix b/default/hardware-configuration.nix
index 36d9aac..39d8c22 100644
--- a/default/hardware-configuration.nix
+++ b/default/hardware-configuration.nix
@@ -10,18 +10,19 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
- { device = "/dev/disk/by-uuid/33e79acf-16a4-4263-be79-792c9432568c";
+ {
+ device = "/dev/disk/by-uuid/33e79acf-16a4-4263-be79-792c9432568c";
fsType = "ext4";
};
fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/4EB3-743A";
+ {
+ device = "/dev/disk/by-uuid/4EB3-743A";
fsType = "vfat";
};
swapDevices =
- [ { device = "/dev/disk/by-uuid/3f3ddaa2-80c8-4915-83fe-fcec42bb877c"; }
- ];
+ [{ device = "/dev/disk/by-uuid/3f3ddaa2-80c8-4915-83fe-fcec42bb877c"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's