Compare commits
2 commits
c31f1ba8dd
...
28ab3b0665
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 28ab3b0665 | ||
Geoffrey Frogeye | 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; });
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ sudo mkdir -p "${mountpoint}/etc"
|
|||
sudo ln -sfn "${flake_uri}" "${mountpoint}/nixos"
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue