Compare commits

..

2 commits

Author SHA1 Message Date
Geoffrey Frogeye 28ab3b0665
install: Fixed 2024-06-12 23:47:20 +02:00
Geoffrey Frogeye 10b48b22e1
cranberry: Added 2024-06-12 23:47:00 +02:00
5 changed files with 54 additions and 1 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; });
} }

View file

@ -87,7 +87,7 @@ sudo mkdir -p "${mountpoint}/etc"
sudo ln -sfn "${flake_uri}" "${mountpoint}/nixos" sudo ln -sfn "${flake_uri}" "${mountpoint}/nixos"
# Install NixOS! Or create a new generation. # Install NixOS! Or create a new generation.
sudo nix --extra-experimental-features "nix-command flakes" run "${SCRIPT_DIR}#nixos-install" -- --no-root-password --root "$mountpoint" --flake "${mountpoint}/etc/nixos#${name}" sudo nix --extra-experimental-features "nix-command flakes" run "${SCRIPT_DIR}#nixos-install" -- --no-root-password --root "$mountpoint" --flake "$flake"
set +x set +x