Re-add variants and reorganize things
This commit is contained in:
parent
bf803d18a6
commit
8476bbde12
18 changed files with 136 additions and 83 deletions
11
pindakaas/default.nix
Normal file
11
pindakaas/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
disk."${config.networking.hostName}".device = "/dev/disk/by-id/mmc-DA4064_0x931f080f";
|
||||
networking.hostName = "pindakaas";
|
||||
};
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./features.nix
|
||||
];
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
{ ... } @ args:
|
||||
import ../dk/single_uefi_btrfs.nix (args // { id = "mmc-DA4064_0x931f080f"; name = "pindakaas"; })
|
9
pindakaas/features.nix
Normal file
9
pindakaas/features.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
frogeye = {
|
||||
desktop.xorg = true;
|
||||
extra = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,24 +6,29 @@
|
|||
|
||||
# Otherwise it will not show stage1 echo and prompt
|
||||
# UPST
|
||||
kernelParams = ["console=tty0"];
|
||||
kernelParams = [ "console=tty0" ];
|
||||
|
||||
# Pinebook supports UEFI, at least when tow-boot is installed on the SPI
|
||||
loader = {
|
||||
# EFI Variables don't work (no generation appears in systemd-boot)
|
||||
efi.canTouchEfiVariables = false;
|
||||
|
||||
# systemd-boot crashes after booting, so GRUB it is
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
device = "nodev";
|
||||
};
|
||||
grub.efiInstallAsRemovable = true;
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap = { # Not capable of building itself otherwise
|
||||
frogeye.desktop = {
|
||||
x11_screens = [ "DP-1" "eDP-1" ];
|
||||
maxVideoHeight = 720;
|
||||
phasesBrightness = {
|
||||
enable = true;
|
||||
jour = "3500";
|
||||
crepuscule = "3000";
|
||||
nuit = "700";
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap = {
|
||||
# Not capable of building itself otherwise
|
||||
enable = true;
|
||||
memoryPercent = 150; # Factory settings
|
||||
};
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
frogeye.extra = true;
|
||||
frogeye.desktop = {
|
||||
xorg = true;
|
||||
x11_screens = [ "DP-1" "eDP-1" ];
|
||||
maxVideoHeight = 720;
|
||||
phasesBrightness = {
|
||||
enable = true;
|
||||
jour = "3500";
|
||||
crepuscule = "3000";
|
||||
nuit = "700";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./dk.nix
|
||||
./options.nix
|
||||
];
|
||||
|
||||
networking.hostName = "pindakaas";
|
||||
}
|
13
pindakaas/sd.nix
Normal file
13
pindakaas/sd.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
boot.loader.grub.efiInstallAsRemovable = true;
|
||||
disk."${config.networking.hostName}".device = "/dev/disk/by-id/mmc-SN32G_0xfb19ae99";
|
||||
networking.hostName = "pindakaas-sd";
|
||||
};
|
||||
imports = [
|
||||
../common/disko/single_uefi_btrfs.nix
|
||||
./features.nix
|
||||
./hardware.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue