fae: boots PubSolarOS

This commit is contained in:
teutat3s 2022-01-31 17:51:42 +01:00
parent f21a8f0e81
commit a774ccdb0c
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 50 additions and 19 deletions

View file

@ -64,6 +64,8 @@
channelsConfig = { allowUnfree = true; }; channelsConfig = { allowUnfree = true; };
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
channels = { channels = {
nixos = { nixos = {
imports = [ (digga.lib.importOverlays ./overlays) ]; imports = [ (digga.lib.importOverlays ./overlays) ];
@ -149,6 +151,9 @@
deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations { deploy.nodes = digga.lib.mkDeployNodes self.nixosConfigurations {
fae = { fae = {
hostname = "fae.fritz.box:22";
sshUser = "pub-solar";
fastConnect = true;
profilesOrder = [ "system" "direnv" ]; profilesOrder = [ "system" "direnv" ];
profiles.direnv = { profiles.direnv = {
user = "pub-solar"; user = "pub-solar";

View file

@ -9,7 +9,9 @@
} }
}/raspberry-pi/4" }/raspberry-pi/4"
profiles.users.root # make sure to configure ssh keys profiles.users.root # make sure to configure ssh keys
profiles.users.nixos profiles.users.pub-solar
profiles.base-user
profiles.pub-solar-iso
]; ];
config = { config = {
@ -23,37 +25,61 @@
}; };
}; };
networking = { environment.systemPackages = with pkgs; [
hostName = "fae"; (kodi-gbm.withPackages (p: with p; [ jellyfin netflix youtube ]))
}; ];
environment.systemPackages = with pkgs; [ vim ];
services.openssh.enable = true; services.openssh.enable = true;
#users = { networking.firewall = {
# mutableUsers = false; allowedTCPPorts = [ 8080 ];
# users."${user}" = { allowedUDPPorts = [ 8080 ];
# isNormalUser = true; };
# password = password;
# extraGroups = [ "wheel" ];
# };
#};
security.sudo.extraConfig = lib.mkAfter '' security.sudo.extraConfig = lib.mkAfter ''
%wheel ALL=(ALL) NOPASSWD:ALL %wheel ALL=(ALL) NOPASSWD:ALL
''; '';
nix = {
autoOptimiseStore = true;
gc.automatic = true;
optimise.automatic = true;
useSandbox = true;
allowedUsers = [ "@wheel" ];
trustedUsers = [ "root" "@wheel" ];
extraOptions = ''
min-free = 536870912
keep-outputs = true
keep-derivations = true
fallback = true
'';
};
# Enable GPU acceleration # Enable GPU acceleration
hardware.raspberry-pi."4".fkms-3d.enable = true; hardware.raspberry-pi."4".fkms-3d.enable = true;
#services.xserver = { # Define a user account for kodi
# enable = true; users.extraUsers.kodi.isNormalUser = true;
# displayManager.lightdm.enable = true;
# desktopManager.xfce.enable = true; services.xserver = {
#}; enable = true;
desktopManager.kodi.enable = true;
desktopManager.kodi.package = pkgs.kodi-gbm;
displayManager = {
autoLogin.enable = true;
autoLogin.user = "kodi";
};
};
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
# custom raspi boot loader is already present
boot.loader.systemd-boot.enable = lib.mkForce false;
}; };
} }