initial monferno
This commit is contained in:
parent
2a982dca30
commit
fa43a72635
43
hosts/monferno.nix
Normal file
43
hosts/monferno.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
# 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 =
|
||||
[ ../types/desktop.nix
|
||||
];
|
||||
|
||||
networking.hostId = "762fff85";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "vmd" "nvme" "uas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "zroot/monferno-root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-label/BOOT";
|
||||
fsType = "vfat";
|
||||
};
|
||||
boot.loader.grub.device = "/dev/disk/by-label/monferno-boot";
|
||||
|
||||
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.eno1.useDHCP = lib.mkDefault true;
|
||||
networking.interfaces.wlp189s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
{
|
||||
services.resolved.enable = false;
|
||||
networking.networkmanager.enable = false;
|
||||
|
||||
networking.nameservers = [
|
||||
"172.16.1.53"
|
||||
|
@ -31,7 +30,7 @@
|
|||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
|
@ -40,14 +39,8 @@
|
|||
nfs-utils
|
||||
xfsprogs
|
||||
];
|
||||
services.openiscsi = {
|
||||
enable = true;
|
||||
name = "${config.networking.hostName}-initiatorhost";
|
||||
};
|
||||
|
||||
systemd.network.wait-online.enable = lib.mkDefault false;
|
||||
networking.useDHCP = false;
|
||||
#services.tcsd.enable = true;
|
||||
|
||||
security.sudo = {
|
||||
enable = true;
|
||||
|
|
13
types/desktop.nix
Normal file
13
types/desktop.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, lib, flake-inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../modules/session.nix
|
||||
../modules/systemd-efi.nix
|
||||
../modules/users.nix
|
||||
../modules/serial-console.nix
|
||||
../modules/pragmatic-bin.nix
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user