cranberry: Added

This commit is contained in:
Geoffrey Frogeye 2024-06-12 23:47:00 +02:00
parent c31f1ba8dd
commit 10b48b22e1
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
4 changed files with 53 additions and 0 deletions

12
cranberry/default.nix Normal file
View file

@ -0,0 +1,12 @@
{ pkgs, lib, config, ... }:
{
config = {
disko.devices.disk."${config.networking.hostName}".device = "/dev/disk/by-id/nvme-UMIS_RPJTJ128MEE1MWX_SS0L25188X3RC12121TP";
networking.hostName = "cranberry";
};
imports = [
../common/disko/single_uefi_btrfs.nix
./hardware.nix
./features.nix
];
}

9
cranberry/features.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, lib, config, ... }:
{
config = {
frogeye = {
desktop.xorg = true;
extra = true;
};
};
}

28
cranberry/hardware.nix Normal file
View file

@ -0,0 +1,28 @@
{ pkgs, lib, config, nixos-hardware, ... }:
{
config = {
boot = {
# nixos-hardware use latest kernel by default. It has been set a while ago, we maybe don't need it anymore?
kernelPackages = pkgs.linuxPackages;
# Otherwise it will not show stage1 echo and prompt
# UPST
kernelParams = [ "console=tty0" ];
# EFI Variables don't seem to work (no generation appear in systemd-boot with SD)
loader.efi.canTouchEfiVariables = false;
};
frogeye.desktop = {
x11_screens = [ "eDP-1" ];
maxVideoHeight = 1080;
};
};
imports = [
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-ssd
];
}

View file

@ -135,6 +135,10 @@
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ ./pindakaas/sd.nix ]; modules = [ ./pindakaas/sd.nix ];
}; };
nixosConfigurations.cranberry = lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./cranberry ];
};
nixOnDroidConfigurations.sprinkles = lib.nixOnDroidConfiguration { }; nixOnDroidConfigurations.sprinkles = lib.nixOnDroidConfiguration { };
} // (lib.flakeTools { inherit self; }); } // (lib.flakeTools { inherit self; });
} }