From 98b0f48fe3ef4339d774fbfa8fd6a7d416a8ca23 Mon Sep 17 00:00:00 2001 From: Tasia Iso Date: Thu, 16 May 2024 20:15:39 +0200 Subject: [PATCH] lol --- common/services/usbguard.nix | 3 +++ flake.lock | 24 ++++++++++++------------ home/tasia/home.nix | 1 + hosts/yaseen/configuration.nix | 4 +++- pkgs/default.nix | 7 ++++++- pkgs/mkdocs-rss-plugin/default.nix | 26 ++++++++++++++++++++++++++ 6 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 pkgs/mkdocs-rss-plugin/default.nix diff --git a/common/services/usbguard.nix b/common/services/usbguard.nix index f329fa2..a8cf7dd 100644 --- a/common/services/usbguard.nix +++ b/common/services/usbguard.nix @@ -22,6 +22,9 @@ # Peripherals allow id 046d:c08b serial "178D316C3832" name "G502 HERO Gaming Mouse" + allow id 1ea7:0907 serial "SN0000000001" name "USB-HID Gaming Keyboard" + + # Phones allow id 18d1:4ee1 serial "28051FDH200ATC" name "Pixel 7" allow id 2717:ff40 serial "52bb384f0512" name "Redmi 10 2022" diff --git a/flake.lock b/flake.lock index 8ae60ea..8ee8f49 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1715077503, - "narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=", + "lastModified": 1715486357, + "narHash": "sha256-4pRuzsHZOW5W4CsXI9uhKtiJeQSUoe1d2M9mWU98HC4=", "owner": "nix-community", "repo": "home-manager", - "rev": "6e277d9566de9976f47228dd8c580b97488734d4", + "rev": "44677a1c96810a8e8c4ffaeaad10c842402647c1", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1715087517, - "narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=", + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b211b392b8486ee79df6cdfb1157ad2133427a29", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "type": "github" }, "original": { @@ -46,11 +46,11 @@ }, "stable": { "locked": { - "lastModified": 1715106579, - "narHash": "sha256-gZMgKEGiK6YrwGBiccZ1gemiUwjsZ1Zv49KYOgmX2fY=", + "lastModified": 1715668745, + "narHash": "sha256-xp62OkRkbUDNUc6VSqH02jB0FbOS+MsfMb7wL1RJOfA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "8be0d8a1ed4f96d99b09aa616e2afd47acc3da89", + "rev": "9ddcaffecdf098822d944d4147dd8da30b4e6843", "type": "github" }, "original": { @@ -62,11 +62,11 @@ }, "unstable": { "locked": { - "lastModified": 1715087517, - "narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=", + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b211b392b8486ee79df6cdfb1157ad2133427a29", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "type": "github" }, "original": { diff --git a/home/tasia/home.nix b/home/tasia/home.nix index 727af15..467fe9e 100644 --- a/home/tasia/home.nix +++ b/home/tasia/home.nix @@ -84,6 +84,7 @@ # opensnitch-ui # superTuxKart # qgis + amfora ]; # The state version is required and should stay at the version you diff --git a/hosts/yaseen/configuration.nix b/hosts/yaseen/configuration.nix index a4d3966..c0e06fe 100644 --- a/hosts/yaseen/configuration.nix +++ b/hosts/yaseen/configuration.nix @@ -77,8 +77,10 @@ in { # Needed to build enry boot.binfmt.emulatedSystems = ["aarch64-linux"]; + services.flatpak.enable = true; + environment.systemPackages = with pkgs; [ - tildefriends + # tildefriends osu-lazer-bin # inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor diff --git a/pkgs/default.nix b/pkgs/default.nix index a16a90b..eae0d64 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,6 +1,11 @@ # Custom packages, that can be defined similarly to ones from nixpkgs # You can build them using 'nix build .#example' -{pkgs, ...}: { +{ + pkgs, + # lib, + ... +}: { + # mkdocs-rss-plugin = pkgs.callPackage ./mkdocs-rss-plugin/default.nix {}; tildefriends = pkgs.callPackage ./tildefriends/default.nix {}; vedirect-reader = pkgs.callPackage ./vedirect-reader/default.nix {}; } diff --git a/pkgs/mkdocs-rss-plugin/default.nix b/pkgs/mkdocs-rss-plugin/default.nix new file mode 100644 index 0000000..62e1811 --- /dev/null +++ b/pkgs/mkdocs-rss-plugin/default.nix @@ -0,0 +1,26 @@ +{ + lib, + buildPythonApplication, + fetchPypi, + setuptools, + wheel, +}: +buildPythonApplication rec { + pname = "toolz"; + version = "0.10.0"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-CP3V73yWSArRHBLUct4hrNMjWZlvaaUlkpm1QP66RWA="; + }; + + # do not run tests + doCheck = false; + + # specific to buildPythonPackage, see its reference + pyproject = true; + build-system = [ + setuptools + wheel + ]; +}