mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 16:16:34 +01:00
Add Inugamei system
This commit is contained in:
parent
0b9d285600
commit
34823e2397
3 changed files with 58 additions and 0 deletions
17
flake.nix
17
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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
12
modules/auto-update/default.nix
Normal file
12
modules/auto-update/default.nix
Normal 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
29
modules/kodi/default.nix
Normal 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue