feat(nix): Add initial Tazblog Nix deployment configuration
This commit is contained in:
parent
9368117813
commit
a646f94d47
6 changed files with 3655 additions and 0 deletions
37
nix/configuration.nix
Normal file
37
nix/configuration.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# This file contains basic configuration for all *.tazj.in Nix machines.
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
time.timeZone = "Europe/Oslo";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl emacs htop
|
||||
];
|
||||
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
users.extraUsers.vincent = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
extraConfig = "%wheel ALL=(ALL) NOPASSWD: ALL";
|
||||
};
|
||||
|
||||
# This value determines the NixOS release with which your system is to be
|
||||
# compatible, in order to avoid breaking some software such as database
|
||||
# servers. You should change this only after NixOS release notes say you
|
||||
# should.
|
||||
system.stateVersion = "17.09"; # Did you read the comment?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue