cranberry: Added
This commit is contained in:
parent
c31f1ba8dd
commit
10b48b22e1
12
cranberry/default.nix
Normal file
12
cranberry/default.nix
Normal 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
9
cranberry/features.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
frogeye = {
|
||||
desktop.xorg = true;
|
||||
extra = true;
|
||||
};
|
||||
};
|
||||
}
|
28
cranberry/hardware.nix
Normal file
28
cranberry/hardware.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -135,6 +135,10 @@
|
|||
system = "aarch64-linux";
|
||||
modules = [ ./pindakaas/sd.nix ];
|
||||
};
|
||||
nixosConfigurations.cranberry = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./cranberry ];
|
||||
};
|
||||
nixOnDroidConfigurations.sprinkles = lib.nixOnDroidConfiguration { };
|
||||
} // (lib.flakeTools { inherit self; });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue