mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
add host yodaGaming
This commit is contained in:
parent
9c70e5e849
commit
afc01e37bd
24
hive.nix
24
hive.nix
@ -42,6 +42,17 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
yodaGaming = { name, nodes, ... }: {
|
||||
# Import the per-host configuration file.
|
||||
imports = [ ./hosts/${name}/configuration.nix ];
|
||||
|
||||
deployment = {
|
||||
# Local deployment.
|
||||
allowLocalDeployment = true;
|
||||
targetHost = null;
|
||||
};
|
||||
};
|
||||
|
||||
#
|
||||
# SSH DEPLOYMENT
|
||||
#
|
||||
@ -59,6 +70,19 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
remoteGaming = { name, nodes, ... }: {
|
||||
# Import the per-host configuration file.
|
||||
imports = [ ./hosts/yodaGaming/configuration.nix ];
|
||||
|
||||
deployment = {
|
||||
# SSH deployment.
|
||||
targetHost = "192.168.178.38";
|
||||
targetPort = 22;
|
||||
|
||||
tags = [];
|
||||
};
|
||||
};
|
||||
|
||||
yodaYoga = { name, nodes, ... }: {
|
||||
# Import the per-host configuration file.
|
||||
imports = [ ./hosts/${name}/configuration.nix ];
|
||||
|
55
hosts/yodaGaming/configuration.nix
Normal file
55
hosts/yodaGaming/configuration.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../modules/home-manager.nix
|
||||
../../modules/nur-and-unstable.nix
|
||||
../../modules/base.nix
|
||||
../../modules/power-management.nix
|
||||
../../modules/ntfs.nix
|
||||
../../modules/ssh-fde-unlock.nix
|
||||
../../modules/zsh.nix
|
||||
../../modules/ssh-client.nix
|
||||
../../modules/ssh-server.nix
|
||||
|
||||
../../modules/btrfs-scrub.nix
|
||||
../../modules/btrfs-mount-options.nix
|
||||
|
||||
#../../modules/gpu-amd.nix
|
||||
../../modules/gnome-base.nix
|
||||
../../modules/gnome-config.nix
|
||||
../../modules/gnome-extensions.nix
|
||||
../../modules/fwupd-gnome.nix
|
||||
../../modules/gnome-wallpaper.nix
|
||||
|
||||
#../../modules/gnome-terminal.nix
|
||||
../../modules/blackbox.nix
|
||||
|
||||
../../modules/programs.nix
|
||||
../../modules/signal-desktop.nix
|
||||
#../../modules/games.nix
|
||||
];
|
||||
|
||||
networking.hostName = "yodaGaming";
|
||||
boot.initrd.luks.devices."luks-root".allowDiscards = true;
|
||||
yoda.btrfsFileSystems = ["/"];
|
||||
#yoda.btrfsMounts = yoda.btrfsFileSystems;
|
||||
|
||||
# List all available kernel versions:
|
||||
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
|
||||
# Default.
|
||||
#boot.kernelPackages = pkgs.linuxPackages;
|
||||
# Latest.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
# Hardened.
|
||||
# https://archlinux.org/packages/extra/x86_64/linux-hardened/
|
||||
# -> https://github.com/anthraxx/linux-hardened
|
||||
#boot.kernelPackages = pkgs.linuxPackages_hardened;
|
||||
# Free/Libre.
|
||||
# https://en.wikipedia.org/wiki/Linux-libre
|
||||
#boot.kernelPackages = pkgs.linuxPackages-libre;
|
||||
|
||||
# Most users should never change this value after the initial install, for any reason, even if you’ve upgraded your system to a new NixOS release.
|
||||
system.stateVersion = "23.11";
|
||||
}
|
40
hosts/yodaGaming/hardware-configuration.nix
Normal file
40
hosts/yodaGaming/hardware-configuration.nix
Normal file
@ -0,0 +1,40 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2cd6a268-fa14-469a-a21f-40dfcfaed381";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@" ];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-root".device = "/dev/disk/by-uuid/c033a402-8616-4aa7-922e-556f60a64a6c";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/BC66-FB6E";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
boot.initrd.network.ssh = {
|
||||
enable = true;
|
||||
port = (
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab") || (config.networking.hostName == "yodaGaming")
|
||||
then 22
|
||||
else if (config.networking.hostName == "yodaYoga")
|
||||
then 2225
|
||||
@ -41,6 +41,8 @@
|
||||
then [ "r8169" ]
|
||||
else if (config.networking.hostName == "yodaYoga") || (config.networking.hostName == "yodaNas")
|
||||
then [ "e1000e" ]
|
||||
else if (config.networking.hostName == "yodaGaming")
|
||||
then [ "tg3" ]
|
||||
else throw "Please add kernel module of networ card here"
|
||||
);
|
||||
#
|
||||
|
@ -4,7 +4,7 @@
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = (
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab") || (config.networking.hostName == "yodaGaming")
|
||||
then [22]
|
||||
else if (config.networking.hostName == "yodaYoga")
|
||||
then [2224]
|
||||
|
Loading…
Reference in New Issue
Block a user