Added two new hosts
This commit is contained in:
parent
7f42d033db
commit
b9d4c49d43
80
hosts/th-ctr-vrt01/default.nix
Normal file
80
hosts/th-ctr-vrt01/default.nix
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Import hardware configuration
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# Import modules
|
||||||
|
../../modules/system/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
# display-manager = "cosmic-greeter";
|
||||||
|
desktop-environments = {
|
||||||
|
cosmic.enable = false;
|
||||||
|
hyprland.enable = false;
|
||||||
|
gnome.enable = false;
|
||||||
|
};
|
||||||
|
applications = {
|
||||||
|
common.enable = true;
|
||||||
|
steam.enable = false;
|
||||||
|
thunar.enable = false;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
docker.enable = false;
|
||||||
|
quickemu.enable = false;
|
||||||
|
sunshine.enable = false;
|
||||||
|
garbage-collection.enable = true;
|
||||||
|
incus.enable = false;
|
||||||
|
};
|
||||||
|
hardware = {
|
||||||
|
fprint.enable = false;
|
||||||
|
printing.enable = false;
|
||||||
|
bluetooth.enable = false;
|
||||||
|
firewall.enable = true;
|
||||||
|
locale.enable = true;
|
||||||
|
nvidia.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
"https://cosmic.cachix.org/"
|
||||||
|
];
|
||||||
|
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
configurationLimit = 32;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.hostName = "th-hpr-srv01"; # Define your hostname.
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [ 80 443 53 ];
|
||||||
|
allowedUDPPorts = [ 80 443 53 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.timo = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Timo Boomers";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "root" "timo" ];
|
||||||
|
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
}
|
46
hosts/th-ctr-vrt01/home.nix
Normal file
46
hosts/th-ctr-vrt01/home.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Modules
|
||||||
|
../../modules/home/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
home = {
|
||||||
|
username = "timo";
|
||||||
|
homeDirectory = "/home/timo";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
applications.common.enable = false;
|
||||||
|
applications.alacritty.enable = false;
|
||||||
|
applications.devenv.enable = false;
|
||||||
|
applications.firefox.enable = false;
|
||||||
|
applications.git.enable = false;
|
||||||
|
applications.helix.enable = false;
|
||||||
|
applications.zsh.enable = true;
|
||||||
|
applications.ssh.enable = true;
|
||||||
|
applications.thunderbird.enable = false;
|
||||||
|
applications.yazi.enable = true;
|
||||||
|
applications.zellij.enable = false;
|
||||||
|
|
||||||
|
services.nextcloud-sync.enable = false;
|
||||||
|
|
||||||
|
theming.fonts.enable = false;
|
||||||
|
theming.stylix.enable = false;
|
||||||
|
theming.stylix.wallpaper = "wallpaper-2.png";
|
||||||
|
theming.stylix.theme = "da-one-ocean";
|
||||||
|
|
||||||
|
desktop-environments.hyprland.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home-manager
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
}
|
80
hosts/th-hpr-srv01/default.nix
Normal file
80
hosts/th-hpr-srv01/default.nix
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Import hardware configuration
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# Import modules
|
||||||
|
../../modules/system/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
# display-manager = "cosmic-greeter";
|
||||||
|
desktop-environments = {
|
||||||
|
cosmic.enable = false;
|
||||||
|
hyprland.enable = false;
|
||||||
|
gnome.enable = false;
|
||||||
|
};
|
||||||
|
applications = {
|
||||||
|
common.enable = true;
|
||||||
|
steam.enable = false;
|
||||||
|
thunar.enable = false;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
docker.enable = false;
|
||||||
|
quickemu.enable = true;
|
||||||
|
sunshine.enable = false;
|
||||||
|
garbage-collection.enable = true;
|
||||||
|
incus.enable = true;
|
||||||
|
};
|
||||||
|
hardware = {
|
||||||
|
fprint.enable = false;
|
||||||
|
printing.enable = false;
|
||||||
|
bluetooth.enable = false;
|
||||||
|
firewall.enable = true;
|
||||||
|
locale.enable = true;
|
||||||
|
nvidia.enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings = {
|
||||||
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
substituters = [
|
||||||
|
"https://nix-community.cachix.org"
|
||||||
|
"https://cosmic.cachix.org/"
|
||||||
|
];
|
||||||
|
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
configurationLimit = 32;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.hostName = "th-hpr-srv01"; # Define your hostname.
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
enable = true;
|
||||||
|
allowedTCPPorts = [ 80 443 53 ];
|
||||||
|
allowedUDPPorts = [ 80 443 53 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.timo = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Timo Boomers";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "root" "timo" ];
|
||||||
|
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
}
|
46
hosts/th-hpr-srv01/home.nix
Normal file
46
hosts/th-hpr-srv01/home.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Modules
|
||||||
|
../../modules/home/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
home = {
|
||||||
|
username = "timo";
|
||||||
|
homeDirectory = "/home/timo";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
applications.common.enable = false;
|
||||||
|
applications.alacritty.enable = false;
|
||||||
|
applications.devenv.enable = false;
|
||||||
|
applications.firefox.enable = false;
|
||||||
|
applications.git.enable = false;
|
||||||
|
applications.helix.enable = false;
|
||||||
|
applications.zsh.enable = true;
|
||||||
|
applications.ssh.enable = true;
|
||||||
|
applications.thunderbird.enable = false;
|
||||||
|
applications.yazi.enable = true;
|
||||||
|
applications.zellij.enable = false;
|
||||||
|
|
||||||
|
services.nextcloud-sync.enable = false;
|
||||||
|
|
||||||
|
theming.fonts.enable = false;
|
||||||
|
theming.stylix.enable = false;
|
||||||
|
theming.stylix.wallpaper = "wallpaper-2.png";
|
||||||
|
theming.stylix.theme = "da-one-ocean";
|
||||||
|
|
||||||
|
desktop-environments.hyprland.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable home-manager
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
home.stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
}
|
@ -1,7 +1,5 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.settings.hardware.firewall;
|
cfg = config.settings.hardware.firewall;
|
||||||
in {
|
in {
|
||||||
@ -14,9 +12,9 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = {
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = cfg.enable;
|
||||||
allowedTCPPorts = [ ];
|
allowedTCPPorts = [ ];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user