removed rpi and tried to fix login bug
This commit is contained in:
parent
583ed4f408
commit
3f96357a8b
5 changed files with 13 additions and 85 deletions
29
flake.nix
29
flake.nix
|
@ -17,36 +17,21 @@
|
|||
|
||||
outputs =
|
||||
inputs@{ self, nixpkgs, ... }:
|
||||
{
|
||||
let
|
||||
hosts = ["work-ntb" "lenar"];
|
||||
in {
|
||||
# Please replace my-nixos with your hostname
|
||||
nixosConfigurations = {
|
||||
work-ntb = nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs hosts (host: nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/work-ntb
|
||||
./hosts/${host}
|
||||
./hosts/base
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
lenar = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/lenar
|
||||
./hosts/base
|
||||
];
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
rpi-kodi = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
modules = [
|
||||
./hosts/rpi-kodi
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,7 +14,12 @@
|
|||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp.enable = true;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth";
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "lenar"; # Define your hostname.
|
||||
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
# ./hardware-configuration.nix
|
||||
inputs.disko.nixosModules.disko
|
||||
./disko.nix
|
||||
];
|
||||
|
||||
networking.hostName = "rpi-kodi"; # Define your hostname.
|
||||
|
||||
# home-manager = {
|
||||
# extraSpecialArgs = {
|
||||
# inherit inputs;
|
||||
# };
|
||||
# users = {
|
||||
# "krop" = import ../../users/krop;
|
||||
# };
|
||||
# };
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = "/dev/mmcblk0"; # Internal SD card for Raspberry Pi
|
||||
content = {
|
||||
type = "MBR"; # MBR partitioning for Raspberry Pi
|
||||
partitions = {
|
||||
# Boot partition (FAT32 for bootloader files)
|
||||
boot = {
|
||||
priority = 1;
|
||||
name = "boot";
|
||||
start = "1M";
|
||||
end = "256M"; # 256MB FAT32 partition for boot files
|
||||
type = "0C"; # FAT32 partition type
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat"; # FAT32 for the boot partition
|
||||
mountpoint = "/boot"; # Mounted as /boot
|
||||
};
|
||||
};
|
||||
# Root partition (ext4 for the main system)
|
||||
root = {
|
||||
size = "100%"; # Use the remaining space for the root filesystem
|
||||
content = {
|
||||
type = "filesystem"; # Basic filesystem (ext4)
|
||||
format = "ext4"; # Use ext4 for the root filesystem
|
||||
mountpoint = "/"; # Root of the system
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
0
nixosModules/system/default.nix
Normal file
0
nixosModules/system/default.nix
Normal file
Loading…
Reference in a new issue