Change structure to use individual machine configuration bla blab la
This commit is contained in:
parent
29ee933441
commit
858ea8b16b
|
@ -96,7 +96,6 @@
|
||||||
base = mkNixOsBase {
|
base = mkNixOsBase {
|
||||||
inherit system pkgs;
|
inherit system pkgs;
|
||||||
hostname = "catboy-cafe";
|
hostname = "catboy-cafe";
|
||||||
use-efi = true;
|
|
||||||
};
|
};
|
||||||
graphical = mkNixOsGraphical {
|
graphical = mkNixOsGraphical {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
@ -132,7 +131,8 @@
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/hardware/catboy-cafe.nix
|
./nixos/machines/catboy-cafe/hardware.nix
|
||||||
|
./nixos/machines/catboy-cafe/boot.nix
|
||||||
base
|
base
|
||||||
graphical
|
graphical
|
||||||
networking
|
networking
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{
|
{
|
||||||
system, pkgs, nixpkgs-flake, hostname,
|
system, pkgs, nixpkgs-flake, hostname,
|
||||||
use-efi ? false, efi-mountpoint ? "/boot",
|
|
||||||
use-grub ? false, grub-device ? "/dev/sda",
|
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowUnfree = true; # lol
|
nixpkgs.config.allowUnfree = true; # lol
|
||||||
|
@ -29,17 +27,6 @@
|
||||||
|
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
|
|
||||||
boot.loader = if use-efi
|
|
||||||
then {
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
efi.efiSysMountPoint = efi-mountpoint;
|
|
||||||
} else if use-grub then {
|
|
||||||
grub.enable = true;
|
|
||||||
grub.devce = grub-device;
|
|
||||||
} else throw "Please use either use-efi or use-grub = true";
|
|
||||||
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Stockholm";
|
time.timeZone = "Europe/Stockholm";
|
||||||
|
|
||||||
services.logind.lidSwitch = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
|
|
7
nixos/machines/catboy-cafe/boot.nix
Normal file
7
nixos/machines/catboy-cafe/boot.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{...}: {
|
||||||
|
boot.loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
efi.efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user