[NixOS] Use base.nix in raspberrypi

This commit is contained in:
Ivan Malison 2021-07-10 15:26:29 -06:00
parent f40a061cc7
commit b12efe9a53
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 3 additions and 33 deletions

View File

@ -4,4 +4,5 @@
];
networking.hostName = "biskcomp";
hardware.video.hidpi.enable = true;
}

View File

@ -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"];
}