[NixOS] Use base.nix in raspberrypi
This commit is contained in:
parent
f40a061cc7
commit
b12efe9a53
@ -4,4 +4,5 @@
|
||||
];
|
||||
|
||||
networking.hostName = "biskcomp";
|
||||
hardware.video.hidpi.enable = true;
|
||||
}
|
||||
|
@ -3,13 +3,10 @@
|
||||
{
|
||||
imports = [
|
||||
<nixos-hardware/raspberry-pi/4>
|
||||
./base.nix
|
||||
./essential-packages.nix
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import ./overlays.nix)
|
||||
];
|
||||
|
||||
hardware.raspberry-pi."4".fkms-3d.enable = true;
|
||||
|
||||
boot = {
|
||||
@ -29,22 +26,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
|
||||
# networking.hostName = "nixos"; # Define your hostname.
|
||||
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.eth0.useDHCP = true;
|
||||
networking.interfaces.wlan0.useDHCP = true;
|
||||
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver = {
|
||||
exportConfiguration = true;
|
||||
@ -53,7 +40,7 @@
|
||||
desktopManager = {
|
||||
plasma5.enable = true;
|
||||
};
|
||||
displayManager.lightdm.enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
};
|
||||
|
||||
powerManagement.cpuFreqGovernor = "ondemand";
|
||||
@ -64,11 +51,6 @@
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
hardware.video.hidpi.enable = true;
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.imalison = {
|
||||
isNormalUser = true;
|
||||
@ -79,14 +61,6 @@
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
raspberrypi-eeprom
|
||||
vlc
|
||||
yubikey-manager
|
||||
networkmanagerapplet
|
||||
ncdu
|
||||
jq
|
||||
rcm
|
||||
ic-keysmith
|
||||
quill
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
@ -101,10 +75,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
|
||||
services.pcscd.enable = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
nix = {
|
||||
autoOptimiseStore = true;
|
||||
gc = {
|
||||
@ -115,5 +85,4 @@
|
||||
};
|
||||
|
||||
system.stateVersion = "21.05"; # Did you read the comment?
|
||||
nix.trustedUsers = ["imalison" "kat"];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user