diff options
| author | Karel Kočí <cynerd@email.cz> | 2025-12-15 11:17:44 +0100 |
|---|---|---|
| committer | Karel Kočí <cynerd@email.cz> | 2025-12-15 11:17:44 +0100 |
| commit | e3c7bc006559ae1c42f3fcfc207c4564251a52f1 (patch) | |
| tree | f4fde70e8b02ea1e99ce5c951723e65c709183ad | |
| parent | b2808addc4b35cdaf776ccef856c51756cd86fb6 (diff) | |
| download | nixos-personal-e3c7bc006559ae1c42f3fcfc207c4564251a52f1.tar.gz nixos-personal-e3c7bc006559ae1c42f3fcfc207c4564251a52f1.tar.bz2 nixos-personal-e3c7bc006559ae1c42f3fcfc207c4564251a52f1.zip | |
nixos: add dribbler
| -rw-r--r-- | flake.lock | 28 | ||||
| -rw-r--r-- | nixos/configurations/dribbler.nix | 89 |
2 files changed, 103 insertions, 14 deletions
@@ -326,11 +326,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1764517877, - "narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=", + "lastModified": 1765472234, + "narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c", + "rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b", "type": "github" }, "original": { @@ -443,11 +443,11 @@ }, "personal-secret": { "locked": { - "lastModified": 1763155218, - "narHash": "sha256-mAApX/0fAZgNTF4Pz7drmLxyxqW083G3bhHzi3stbg0=", + "lastModified": 1765793712, + "narHash": "sha256-51X4iiVhS/yz1WRgs8Du2QeZiydpp3YQt3Oua7hN7j4=", "ref": "refs/heads/master", - "rev": "25cb969c4fc252a0ca4846fc3e7beefbe084806f", - "revCount": 140, + "rev": "a1acdc9edf77f615fd99bf0efa27fcc1516d97ef", + "revCount": 141, "type": "git", "url": "ssh://git@cynerd.cz/nixos-personal-secret" }, @@ -537,11 +537,11 @@ "nixpkgs": "nixpkgs_7" }, "locked": { - "lastModified": 1756365336, - "narHash": "sha256-pqSx0uGuQcHJBYbJiA9gw00zUXBqAjagjjtD/RPcGr4=", + "lastModified": 1765193231, + "narHash": "sha256-rpOriWkgFOD3h1N/jPaWKn2B0ZRMPMg/iWXZI9fcs6w=", "ref": "refs/heads/master", - "rev": "748c5894119254a4ead74cb7c85dbbe24c5bc667", - "revCount": 117, + "rev": "a25793a758a4288c3f4eec39ad9b4309860c6e22", + "revCount": 118, "type": "git", "url": "https://git.cynerd.cz/shellrc" }, @@ -768,11 +768,11 @@ }, "vpsadminos": { "locked": { - "lastModified": 1764705427, - "narHash": "sha256-SSSYQQ74CsW1NXd0rYZx/YkfmaWXTiPa3GFGrXadsPE=", + "lastModified": 1765461733, + "narHash": "sha256-D50YXRtbFBrixVFzLj1jBtTcthMgzWVC0BAKOaIUsG4=", "owner": "vpsfreecz", "repo": "vpsadminos", - "rev": "c998f1eec79ce2ce082278ffbd6c58575e95e2c9", + "rev": "a93e299f8ca269262646847dc8b57b7e3108f8dd", "type": "github" }, "original": { diff --git a/nixos/configurations/dribbler.nix b/nixos/configurations/dribbler.nix new file mode 100644 index 0000000..306925c --- /dev/null +++ b/nixos/configurations/dribbler.nix @@ -0,0 +1,89 @@ +{pkgs, ...}: { + system.stateVersion = "25.11"; + nixpkgs.hostPlatform.system = "x86_64-linux"; + deploy = { + enable = true; + default = false; + ssh.host = "dribbler"; + }; + + cynerd = { + wifiClient = true; + }; + + boot = { + initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"]; + kernelModules = ["kvm-intel"]; + }; + + hardware.cpu.intel.updateMicrocode = true; + + boot.initrd.luks.devices = { + "encroot".device = "/dev/disk/by-uuid/b317feb5-d68d-4ec3-a24f-0307c116cac8"; + }; + fileSystems = { + "/" = { + device = "/dev/mapper/encroot"; + fsType = "btrfs"; + options = ["compress=lzo" "subvol=@"]; + }; + "/nix" = { + device = "/dev/mapper/encroot"; + fsType = "btrfs"; + options = ["compress=lzo" "subvol=@nix"]; + }; + "/home" = { + device = "/dev/mapper/encroot"; + fsType = "btrfs"; + options = ["compress=lzo" "subvol=@home"]; + }; + "/boot" = { + device = "/dev/disk/by-uuid/8F7D-A154"; + fsType = "vfat"; + }; + }; + services.btrfs.autoScrub = { + enable = true; + fileSystems = ["/"]; + }; + + networking = { + useNetworkd = true; + useDHCP = false; + }; + systemd.network = { + networks = { + "dhcp" = { + matchConfig.Name = "enp2s0f0"; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = "yes"; + }; + linkConfig.RequiredForOnline = "routable"; + }; + "dhcp-wlan" = { + matchConfig.Name = "wlp3s0"; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = "yes"; + }; + routes = [{Metric = 1088;}]; + linkConfig.RequiredForOnline = "routable"; + }; + }; + wait-online.enable = false; + }; + + # Kodi + nixpkgs.config.kodi.enableAdvancedLauncher = true; + users.extraUsers.kodi.isNormalUser = true; + services.cage = { + user = "kodi"; + program = "${pkgs.kodi-wayland}/bin/kodi-standalone"; + enable = true; + }; + networking.firewall = { + allowedTCPPorts = [8080]; + allowedUDPPorts = [8080]; + }; +} |
