quitte: move back to bare-metal
Das Proxmox ist tot. Lang lebe NixOS!
This commit is contained in:
parent
e18a99c452
commit
f2af8d0a75
|
@ -44,9 +44,7 @@
|
||||||
quitte = self.nixosConfigurations.quitte.config.system.build.toplevel;
|
quitte = self.nixosConfigurations.quitte.config.system.build.toplevel;
|
||||||
tomate = self.nixosConfigurations.tomate.config.system.build.toplevel;
|
tomate = self.nixosConfigurations.tomate.config.system.build.toplevel;
|
||||||
});
|
});
|
||||||
formatters = forAllSystems (system: {
|
formatter = forAllSystems (system: pkgs.${system}.nixpkgs-fmt);
|
||||||
default = pkgs.${system}.nixpkgs-fmt;
|
|
||||||
});
|
|
||||||
hydraJobs = forAllSystems (system: {
|
hydraJobs = forAllSystems (system: {
|
||||||
quitte = self.packages.${system}.quitte;
|
quitte = self.packages.${system}.quitte;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
@ -7,22 +7,22 @@
|
||||||
./network.nix
|
./network.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
#boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
# boot.kernelParams = [ "video=VGA-1:1024x768@30" ];
|
||||||
#boot.kernelParams = [ "video=VGA-1:1024x768@30" ];
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
#boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
#boot.zfs.devNodes = "/dev/";
|
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
||||||
|
boot.zfs = {
|
||||||
|
forceImportRoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.qemuGuest.enable = true;
|
# services.qemuGuest.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
|
|
|
@ -1,42 +1,52 @@
|
||||||
# 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, modulesPath, ... }:
|
{ config, lib, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
];
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "megaraid_sas" "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/4d57c7c1-ed70-4fb1-af4c-4ba027b75248";
|
device = "rpool/nixos/root";
|
||||||
fsType = "ext4";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."luksroot".device = "/dev/disk/by-uuid/cfb9b37e-152d-45e9-b75d-88d71471be45";
|
fileSystems."/home" =
|
||||||
|
{
|
||||||
|
device = "rpool/nixos/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{
|
||||||
|
device = "rpool/nixos/nixnew";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib" =
|
||||||
|
{
|
||||||
|
device = "rpool/nixos/var/lib";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/log" =
|
||||||
|
{
|
||||||
|
device = "rpool/nixos/var/log";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{
|
{
|
||||||
device = "/dev/disk/by-uuid/06C4-1FDB";
|
device = "/dev/disk/by-uuid/3278-8D00";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
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.ens18.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,6 @@ in
|
||||||
domain = "ifsr.de";
|
domain = "ifsr.de";
|
||||||
hostName = "quitte";
|
hostName = "quitte";
|
||||||
rDNS = config.networking.fqdn;
|
rDNS = config.networking.fqdn;
|
||||||
enableIPv6 = true;
|
|
||||||
useDHCP = true;
|
|
||||||
interfaces.ens18.useDHCP = true;
|
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
nftables.enable = true;
|
nftables.enable = true;
|
||||||
|
|
||||||
|
@ -23,7 +20,6 @@ in
|
||||||
allowedUDPPorts = [ wireguard_port ];
|
allowedUDPPorts = [ wireguard_port ];
|
||||||
logRefusedConnections = false;
|
logRefusedConnections = false;
|
||||||
};
|
};
|
||||||
wireguard.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
|
@ -37,7 +33,7 @@ in
|
||||||
|
|
||||||
# Interfaces on the machine
|
# Interfaces on the machine
|
||||||
networks."10-wired-default" = {
|
networks."10-wired-default" = {
|
||||||
matchConfig.Name = "ens18";
|
matchConfig.Name = "enp65s0f0np0";
|
||||||
|
|
||||||
address = [ "141.30.30.169/25" ];
|
address = [ "141.30.30.169/25" ];
|
||||||
routes = [
|
routes = [
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
networks."10-wired-default" = config.systemd.network.networks."10-wired-default";
|
networks."10-wired-default" = config.systemd.network.networks."10-wired-default";
|
||||||
};
|
};
|
||||||
users.root.shell = "/bin/systemd-tty-ask-password-agent";
|
users.root.shell = "/bin/zfs load-key rpool/nixos";
|
||||||
};
|
};
|
||||||
network = {
|
network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue