pi config working

This commit is contained in:
Polen 2024-10-30 22:21:42 -04:00
parent 4994ba4f77
commit f0aab13dda
5 changed files with 105 additions and 46 deletions

View file

@ -2,20 +2,9 @@
let
user = "polen";
password = "guest";
SSID = "Cogeco-F710";
SSIDpassword = "mypassword";
interface = "wlan0";
password = "password";
hostname = "pi";
in {
# imports = [
# inputs.sops-nix.nixosModules.ops
# ];
# sops.defaultSopsFile = ../../secrets/secrets.yaml;
# sops.defaultSopsFormat = "yaml";
# sops.age.keyFile = "/home/polen/.config/sops/age/keys.txt";
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi3;
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ];
@ -34,24 +23,30 @@ in {
};
networking = {
networkmanager.enable = true;
wireless.enable = false;
hostName = hostname;
wireless = {
enable = true;
networks."${SSID}".psk = SSIDpassword;
interfaces = [ interface ];
};
};
environment.systemPackages = with pkgs; [ nvim ];
environment.systemPackages = with pkgs; [
neovim
tmux
curl
wget
git
ranger
];
services.openssh.enable = true;
virtualisation.docker.enable = true;
users = {
mutableUsers = false;
users."${user}" = {
isNormalUser = true;
password = password;
extraGroups = [ "wheel" ];
extraGroups = [ "wheel" "docker" ];
};
};

View file

@ -15,8 +15,6 @@
};
services.blueman.enable = true;
virtualisation.waydroid.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -25,6 +23,9 @@
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
boot.binfmt.emulatedSystems = ["aarch64-linux"];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
@ -58,7 +59,6 @@
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
};
#users.defaultUserShell = pkgs.zsh
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
@ -75,6 +75,7 @@
home-manager
sops
# Desktop
waybar
mako
swww