darwin
Stef Dunlap 1 year ago
parent b77a0119a9
commit baef0e9044
  1. 41
      box/y500.nix
  2. 20
      flake.nix

@ -0,0 +1,41 @@
# 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" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
networking.hostName = "y500"; # Define your hostname.
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b69c84fb-7123-4730-aa36-2af77653e33a";
fsType = "ext4";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/88FB-029A";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/fe6fc74f-0bd9-484e-9b6c-781b6de57b7e"; }
];
# 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.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

@ -39,5 +39,25 @@
}
];
};
nixosConfigurations.y500 = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [ overlay-unstable ];
})
./conf/workstation.nix
./box/y500.nix
./app/virtualbox.nix
./app/teamviewer.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.kindrobot.imports = [
./home/kindrobot.nix
./home/email_accounts.nix
];
}
];
};
};
}

Loading…
Cancel
Save