gaap.nix
This commit is contained in:
30
modules/nixos/gaap.nux
Normal file
30
modules/nixos/gaap.nux
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{config, pkgs, inputs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
users.users.smad = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "superuser madrigal";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" "docker"];
|
||||||
|
shell = pkgs.fish;
|
||||||
|
packages = with pkgs; [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# Enable automatic login for the user.
|
||||||
|
services.displayManager.autoLogin.enable = true;
|
||||||
|
services.displayManager.autoLogin.user = "smad";
|
||||||
|
networking.hostName = "gaap"; # Define your hostname.
|
||||||
|
services.prometheus.exporters.node = {
|
||||||
|
enable = true;
|
||||||
|
port = 9100;
|
||||||
|
enabledCollectors = [
|
||||||
|
"logind"
|
||||||
|
"systemd"
|
||||||
|
];
|
||||||
|
disabledCollectors = [ "textfile" ];
|
||||||
|
openFirewall = true;
|
||||||
|
firewallFilter = "-i br0 -p tcp -m tcp --dport 9100";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user