diff --git a/flake.nix b/flake.nix index f1fae90..280d9d9 100644 --- a/flake.nix +++ b/flake.nix @@ -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 + ]; + }; }; }; } diff --git a/modules/auto-update/default.nix b/modules/auto-update/default.nix new file mode 100644 index 0000000..8a8f346 --- /dev/null +++ b/modules/auto-update/default.nix @@ -0,0 +1,12 @@ +{ ... }: + +{ + system.autoUpgrade = { + enable = true; + randomizedDelaySec = "30min"; + flake = "git+https://codeberg.org/jopejoe1/nix-conf"; + dates = "hourly"; + }; +} + + diff --git a/modules/kodi/default.nix b/modules/kodi/default.nix new file mode 100644 index 0000000..ca2a220 --- /dev/null +++ b/modules/kodi/default.nix @@ -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; +} + +