Revamp ./hosts

This commit is contained in:
Sridhar Ratnakumar 2022-04-30 11:54:32 -04:00
parent 073e1eaa08
commit a9bb3054fa
3 changed files with 0 additions and 46 deletions

View file

@ -1,46 +0,0 @@
{ config, pkgs, lib, modulesPath, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
(modulesPath + "/virtualisation/digital-ocean-config.nix")
];
swapDevices = [{ device = "/swapfile"; size = 2048; }];
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
environment.systemPackages = with pkgs; [
cryptsetup
];
services.netdata.enable = true;
services.do-agent.enable = true;
services = {
syncthing = {
enable = true;
user = "srid";
dataDir = "/volume";
};
};
# Define a user account. Don't forget to set a password with passwd.
users.users.srid = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}