mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-01 12:15:25 +08:00
46 lines
1.3 KiB
Nix
46 lines
1.3 KiB
Nix
{ 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. It‘s 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?
|
||
|
||
}
|