switch rico2 to generic aarch64

This commit is contained in:
Adithya 2023-04-15 22:35:39 +05:30
parent a87c54d6ab
commit ac691465ab
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
5 changed files with 25 additions and 10 deletions

View file

@ -25,10 +25,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
};
nixvim = { nixvim = {
url = "github:pta2002/nixvim"; url = "github:pta2002/nixvim";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -71,8 +67,6 @@
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
} }
nixos-hardware.nixosModules.raspberry-pi-4
./users ./users
./system.rico ./system.rico
]; ];

View file

@ -7,6 +7,8 @@
./security.nix ./security.nix
]; ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "Rico2"; networking.hostName = "Rico2";
i18n = { i18n = {

View file

@ -1,3 +1,3 @@
{ ... }: { { ... }: {
imports = [ ./filesystem.nix ]; imports = [ ./filesystem.nix ./kernel.nix ];
} }

View file

@ -1,8 +1,12 @@
{ ... }: { { ... }: {
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_SD"; device = "/dev/disk/by-partlabel/NIXOS_ROOT";
fsType = "ext4"; fsType = "btrfs";
options = [ "noatime" ]; options = [ "noatime" "compress=zstd" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-partlabel/ESP";
fsType = "vfat";
}; };
} }

View file

@ -0,0 +1,15 @@
{ lib, pkgs, ... }: {
boot = {
consoleLogLevel = 3;
initrd = {
availableKernelModules = [
"usbhid"
"usb_storage"
];
systemd.enable = true;
};
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "quiet" ];
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}