forked from colonelpanic/dotfiles
[NixOS] Fix flakes for raspberry pi
This commit is contained in:
parent
6163358c8f
commit
3404d3c196
@ -95,3 +95,6 @@
|
|||||||
|
|
||||||
[branch]
|
[branch]
|
||||||
autosetuprebase = always
|
autosetuprebase = always
|
||||||
|
[user]
|
||||||
|
email = IvanMalison@gmail.com
|
||||||
|
name = Ivan Malison
|
||||||
|
@ -19,6 +19,11 @@
|
|||||||
nix.registry.nixpkgs.flake = nixpkgs;
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
nixpkgs.overlays = [ taffybar.overlay xmonad.overlay xmonad-contrib.overlay ];
|
nixpkgs.overlays = [ taffybar.overlay xmonad.overlay xmonad-contrib.overlay ];
|
||||||
});
|
});
|
||||||
|
piHardware = ({ ... }: {
|
||||||
|
imports = [
|
||||||
|
nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
|
];
|
||||||
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
@ -27,7 +32,8 @@
|
|||||||
modules = [ tweaks ./machines/ryzen-shine.nix ];
|
modules = [ tweaks ./machines/ryzen-shine.nix ];
|
||||||
};
|
};
|
||||||
biskcomp = nixpkgs.lib.nixosSystem {
|
biskcomp = nixpkgs.lib.nixosSystem {
|
||||||
modules = [ tweaks ./machines/biskcomp.nix ];
|
system = "aarch64-linux";
|
||||||
|
modules = [ tweaks piHardware ./machines/biskcomp.nix ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../raspberry-pi.nix
|
|
||||||
../jellyfin.nix
|
../jellyfin.nix
|
||||||
|
../internet-computer.nix
|
||||||
# ../internet-computer.nix
|
../raspberry-pi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "biskcomp";
|
networking.hostName = "biskcomp";
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<nixos-hardware/raspberry-pi/4>
|
|
||||||
./base.nix
|
./base.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -31,17 +30,6 @@
|
|||||||
networking.interfaces.eth0.useDHCP = true;
|
networking.interfaces.eth0.useDHCP = true;
|
||||||
networking.interfaces.wlan0.useDHCP = true;
|
networking.interfaces.wlan0.useDHCP = true;
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver = {
|
|
||||||
exportConfiguration = true;
|
|
||||||
layout = "us";
|
|
||||||
enable = true;
|
|
||||||
desktopManager = {
|
|
||||||
plasma5.enable = true;
|
|
||||||
};
|
|
||||||
displayManager.sddm.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "ondemand";
|
powerManagement.cpuFreqGovernor = "ondemand";
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
@ -50,8 +38,6 @@
|
|||||||
options = [ "noatime" ];
|
options = [ "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
raspberrypi-eeprom
|
raspberrypi-eeprom
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user