Add Inugamei system

This commit is contained in:
Johannes Jöns 2023-08-14 16:47:59 +02:00
parent 0b9d285600
commit 34823e2397
3 changed files with 58 additions and 0 deletions

View file

@ -84,6 +84,23 @@
home-manager.nixosModules.home-manager
];
};
inugami = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
specialArgs = inputs;
modules = [
./systems/inugami
./modules/audio
./modules/bluetooth
./modules/local
./modules/nix
./modules/kodi
./modules/auto-update
./overlays
nixos-hardware.nixosModules.raspberry-pi-4
nur.nixosModules.nur
home-manager.nixosModules.home-manager
];
};
};
};
}

View file

@ -0,0 +1,12 @@
{ ... }:
{
system.autoUpgrade = {
enable = true;
randomizedDelaySec = "30min";
flake = "git+https://codeberg.org/jopejoe1/nix-conf";
dates = "hourly";
};
}

29
modules/kodi/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
services = {
xserver = {
enable = true;
libinput.enable = true;
desktopManager.kodi = {
enable = true;
package = pkgs.kodi-wayland.withPackages (p: with p; [ trakt netflix youtube vfs-sftp ]);
};
displayManager.autoLogin = {
enable = true;
user = "kodi";
};
};
};
networking.firewall = {
allowedTCPPorts = [ 8080 ];
allowedUDPPorts = [ 8080 ];
};
users.extraUsers.kodi.isNormalUser = true;
}