more refactoring to make hosts more consistent
This commit is contained in:
@@ -68,8 +68,7 @@
|
|||||||
};
|
};
|
||||||
nixpkgsPatcher.inputs = inputs;
|
nixpkgsPatcher.inputs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/desktop/configuration.nix
|
./hosts/desktop
|
||||||
./hosts/desktop/hardware-configuration.nix
|
|
||||||
./modules/sops.nix
|
./modules/sops.nix
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
./modules/desktop/xremap.nix
|
./modules/desktop/xremap.nix
|
||||||
@@ -106,8 +105,7 @@
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/music-server/configuration.nix
|
./hosts/music-server
|
||||||
./hosts/music-server/hardware-configuration.nix
|
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
./modules/sops.nix
|
./modules/sops.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
@@ -126,8 +124,7 @@
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/pizzasucht/configuration.nix
|
./hosts/pizzasucht
|
||||||
./hosts/pizzasucht/hardware-configuration.nix
|
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
@@ -144,8 +141,7 @@
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/laptop/configuration.nix
|
./hosts/laptop
|
||||||
./hosts/laptop/hardware-configuration.nix
|
|
||||||
./modules/desktop/xremap.nix
|
./modules/desktop/xremap.nix
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
|
||||||
./drives.nix
|
|
||||||
./packages.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
../../modules/sops.nix
|
../../modules/sops.nix
|
||||||
../../modules/desktop/vr.nix
|
../../modules/desktop/vr.nix
|
||||||
../../modules/nixos/git.nix
|
../../modules/nixos/git.nix
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./boot.nix
|
||||||
|
./drives.nix
|
||||||
|
./packages.nix
|
||||||
|
./configuration.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
zfsSupport = true;
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
mirroredBoots = [
|
||||||
|
{
|
||||||
|
devices = [ "nodev" ];
|
||||||
|
path = "/boot";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"i8042.reset"
|
||||||
|
"i8042.nomux"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "zpool/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/home" = {
|
||||||
|
device = "zpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/var" = {
|
||||||
|
device = "zpool/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "zpool/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/7FFD-E943";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
}
|
||||||
@@ -5,55 +5,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./boot.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
../../modules/nixos/git.nix
|
../../modules/nixos/git.nix
|
||||||
../../modules/nixos/remote-builder.nix
|
../../modules/nixos/remote-builder.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub = {
|
|
||||||
enable = true;
|
|
||||||
zfsSupport = true;
|
|
||||||
efiSupport = true;
|
|
||||||
efiInstallAsRemovable = true;
|
|
||||||
mirroredBoots = [
|
|
||||||
{
|
|
||||||
devices = [ "nodev" ];
|
|
||||||
path = "/boot";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"i8042.reset"
|
|
||||||
"i8042.nomux"
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.zfs.forceImportRoot = false;
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "zpool/root";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/home" = {
|
|
||||||
device = "zpool/home";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/var" = {
|
|
||||||
device = "zpool/var";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/nix" = {
|
|
||||||
device = "zpool/nix";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/7FFD-E943";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
networking.hostId = "fefca888";
|
networking.hostId = "fefca888";
|
||||||
networking.hostName = "some_phone";
|
networking.hostName = "some_phone";
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./boot.nix
|
||||||
|
./packages.nix
|
||||||
|
./configuration.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -32,12 +32,8 @@
|
|||||||
device = "/dev/disk/by-uuid/FCFD-4472";
|
device = "/dev/disk/by-uuid/FCFD-4472";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.zfs.forceImportRoot = false;
|
boot.zfs.forceImportRoot = false;
|
||||||
services.zfs.autoScrub.enable = true;
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
services.zfs.autoSnapshot = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
@@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
./packages.nix
|
|
||||||
../../modules/nixos/server
|
../../modules/nixos/server
|
||||||
../../modules/nixos/git.nix
|
../../modules/nixos/git.nix
|
||||||
../../modules/sops.nix
|
../../modules/sops.nix
|
||||||
@@ -27,6 +25,11 @@
|
|||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.zfs = {
|
||||||
|
autoSnapshot.enable = true;
|
||||||
|
autoScrub.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostId = "6054e036";
|
networking.hostId = "6054e036";
|
||||||
networking.hostName = "nixos-music";
|
networking.hostName = "nixos-music";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./boot.nix
|
||||||
|
./packages.nix
|
||||||
|
./configuration.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
boot.initrd.supportedFilesystems = [ "zfs" ];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"virtio_pci"
|
||||||
|
"virtio_blk"
|
||||||
|
"virtio_scsi"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.zfs.forceImportRoot = false;
|
||||||
|
|
||||||
|
boot.zfs.devNodes = "/dev/disk/by-path";
|
||||||
|
|
||||||
|
boot.kernelParams = [ "console=ttyS0" ];
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
zfsSupport = true;
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
mirroredBoots = [
|
||||||
|
{
|
||||||
|
devices = [ "nodev" ];
|
||||||
|
path = "/boot";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "zpool/root";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/home" = {
|
||||||
|
device = "zpool/home";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/var" = {
|
||||||
|
device = "zpool/var";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/nix" = {
|
||||||
|
device = "zpool/nix";
|
||||||
|
fsType = "zfs";
|
||||||
|
};
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/8FA8-69C2";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
}
|
||||||
@@ -5,60 +5,9 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
|
||||||
./packages.nix
|
|
||||||
../../modules/nixos/git.nix
|
../../modules/nixos/git.nix
|
||||||
];
|
];
|
||||||
networking.hostId = "798c7c92";
|
networking.hostId = "798c7c92";
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
|
||||||
boot.initrd.supportedFilesystems = [ "zfs" ];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"virtio_pci"
|
|
||||||
"virtio_blk"
|
|
||||||
"virtio_scsi"
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.zfs.forceImportRoot = false;
|
|
||||||
|
|
||||||
boot.zfs.devNodes = "/dev/disk/by-path";
|
|
||||||
|
|
||||||
boot.kernelParams = [ "console=ttyS0" ];
|
|
||||||
boot.loader.grub = {
|
|
||||||
enable = true;
|
|
||||||
zfsSupport = true;
|
|
||||||
efiSupport = true;
|
|
||||||
efiInstallAsRemovable = true;
|
|
||||||
mirroredBoots = [
|
|
||||||
{
|
|
||||||
devices = [ "nodev" ];
|
|
||||||
path = "/boot";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "zpool/root";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/home" = {
|
|
||||||
device = "zpool/home";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/var" = {
|
|
||||||
device = "zpool/var";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/nix" = {
|
|
||||||
device = "zpool/nix";
|
|
||||||
fsType = "zfs";
|
|
||||||
};
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/8FA8-69C2";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
# networking.hostName = "nixos"; # Define your hostname.
|
# networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./boot.nix
|
||||||
|
./packages.nix
|
||||||
|
./configuration.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
./slskd.nix
|
./slskd.nix
|
||||||
./navidrome.nix
|
./navidrome.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./zfs.nix
|
|
||||||
./firewall.nix
|
./firewall.nix
|
||||||
./grafana.nix
|
./grafana.nix
|
||||||
../scripts.nix
|
../scripts.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user