wip on reinstalling foureighty

This commit is contained in:
Cyryl Płotnicki 2021-06-26 19:12:31 +01:00
parent cd779e7fa4
commit 1680829616
7 changed files with 61 additions and 70 deletions

View file

@ -33,6 +33,13 @@
{
nixosConfigurations = {
bootstrap = nixpkgs-stable.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(./. + "/nixos/boxes/bootstrap")
];
specialArgs = { inherit inputs; };
};
foureighty = mkWorkstation nixpkgs-stable "x86_64-linux" "foureighty";
skinnyv = mkWorkstation nixpkgs-stable "x86_64-linux" "skinnyv";
brix = mkServer nixpkgs-stable "x86_64-linux" "brix";

View file

@ -1,17 +0,0 @@
{ config, pkgs, ... }:
{
networking.hostName = "fixme";
imports = [
./hardware-configuration.nix
../../boot.nix
../../common.nix
../../distributed-builds.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "Europe/London";
}

View file

@ -1,34 +0,0 @@
{ config, pkgs, ... }:
{
networking.hostName = "fixme";
imports = [
<home-manager/nixos>
./hardware-configuration.nix
../../boot.nix
../../common.nix
../../gfx-intel.nix
../../i3
../../distributed-builds.nix
../../gui
../../git
../../backups.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "Europe/London";
fonts.fontconfig.enable = true;
home-manager.users.cyryl = {...}: {
imports = [
../../home-manager
];
home.stateVersion = config.system.stateVersion;
nixpkgs.overlays = config.nixpkgs.overlays;
nixpkgs.config = config.nixpkgs.config;
};
}

View file

@ -0,0 +1,16 @@
{ config, pkgs, inputs, ... }:
{
networking.hostName = "fixme";
imports = [
./hardware-configuration.nix
../../boot.nix
../../common.nix
../../gfx-intel.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
time.timeZone = "Europe/London";
fonts.fontconfig.enable = true;
}

View file

@ -0,0 +1,31 @@
{ config, lib, pkgs, inputs, ... }:
{
boot = {
kernelModules = [ "kvm-intel" ];
initrd = {
kernelModules = [ "dm-snapshot" ];
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
};
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = true;
};
boot.initrd.luks.devices."crypt".device = "replaceme";
fileSystems."/" = {
device = "replaceme";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "replaceme";
fsType = "vfat";
};
swapDevices = [ ];
nix.maxJobs = 2;
nix.buildCores = 6;
}

View file

@ -19,14 +19,6 @@
];
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
boot.loader.grub = {
enable = true;
version = 2;
useOSProber = true;
memtest86.enable = true;
splashImage = ./boot.png;
};
time.hardwareClockInLocalTime = true;
time.timeZone = "Europe/London";
hardware.trackpoint.enable = true;

View file

@ -17,23 +17,19 @@
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
};
loader.grub = {
device = "nodev";
efiSupport = true;
};
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = true;
};
fileSystems."/" =
{ device = "/dev/mapper/crypt";
boot.initrd.luks.devices."crypt".device = "replaceme";
fileSystems."/" = {
device = "replaceme";
fsType = "btrfs";
};
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/c2b23e5e-82c6-45dc-b07d-a8f9be03440e";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C380-BA8A";
fileSystems."/boot" = {
device = "replaceme";
fsType = "vfat";
};