From 577a19cf278c394b273dbca806bc1035ec5cc508 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 20 Feb 2022 21:16:17 +0200 Subject: [PATCH] feat: removed some unused applications --- configuration.nix | 5 +++ flake.lock | 48 ++++++++++++++--------------- modules/applications/kdeconnect.nix | 9 ++++++ modules/applications/misc.nix | 8 ++--- modules/overlays/default.nix | 2 +- 5 files changed, 43 insertions(+), 29 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7ca076d..280f3f6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -93,7 +93,12 @@ system.stateVersion = "21.11"; + # TODO: put nixpkgs stuff inside their own file nixpkgs.config.allowUnfree = true; nixpkgs.config.allowBroken = true; + + nixpkgs.config.permittedInsecurePackages = [ + "electron-13.6.9" + ]; } diff --git a/flake.lock b/flake.lock index 9366f9e..364e64b 100644 --- a/flake.lock +++ b/flake.lock @@ -35,11 +35,11 @@ "easy-purescript-nix": { "flake": false, "locked": { - "lastModified": 1643051731, - "narHash": "sha256-GCkaJN4nMs//pcohJJ8789/16utoZwgXpKUcPCzc3m8=", + "lastModified": 1644823918, + "narHash": "sha256-fhr5sisPsm2uzm0VenH7Urpc+AcI39OGpPNaUVTD/8Q=", "owner": "justinwoo", "repo": "easy-purescript-nix", - "rev": "ebf07d08ed55ce2fc2cf871a062474c6ad2b49a3", + "rev": "3630943b74f681289ed87a0ed6c3e502556ddebb", "type": "github" }, "original": { @@ -133,11 +133,11 @@ ] }, "locked": { - "lastModified": 1643066491, - "narHash": "sha256-wIgqFCJ6v7COpgNY0lMHDnU9RP2dJgasa2jKkB0zhWw=", + "lastModified": 1645244400, + "narHash": "sha256-o7KCd6ySFZ9/LbS62aTeuFmBWtP7Tt3Q3RcNjYgTgZU=", "owner": "nix-community", "repo": "home-manager", - "rev": "462d4a7abdfb8cb762584745a480ad01c207570e", + "rev": "0232fe1b75e6d7864fd82b5c72f6646f87838fc3", "type": "github" }, "original": { @@ -156,11 +156,11 @@ }, "locked": { "dir": "contrib", - "lastModified": 1643521936, - "narHash": "sha256-qXtpIBP8wcUIAywqHehlxpaZnwG7spFsb36kDYQXCKQ=", + "lastModified": 1645311555, + "narHash": "sha256-Va2UQFMSBYDuUbYOVKEPQj1PV1RxBHbhv0WTJTHqDvE=", "owner": "neovim", "repo": "neovim", - "rev": "9aaf7a2b4dfe9d3f9a1861e7ca85b6bbd4e34e05", + "rev": "8b3799e2c33282bf417ddee15ae71b5aba613c16", "type": "github" }, "original": { @@ -179,11 +179,11 @@ ] }, "locked": { - "lastModified": 1643530359, - "narHash": "sha256-RdCG+OXV3j57BFTyJSXy/Ko1LAM571JV9DiAtIdo0HM=", + "lastModified": 1645344796, + "narHash": "sha256-sUaJA5Q6glKRfB2WOcMFi1wOcUQthXRGVego9eetGTk=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "e2eaf9379b15c9ee017b0505e9282204b2f29f80", + "rev": "957f8d1c54d81031ea2422b97e2bd9518661f78c", "type": "github" }, "original": { @@ -194,11 +194,11 @@ }, "nixos-unstable": { "locked": { - "lastModified": 1642903813, - "narHash": "sha256-0lNfGW8sNfyTrixoQhVG00Drl/ECaf5GbfKAQ1ZDoyE=", + "lastModified": 1644613700, + "narHash": "sha256-wLRPJclMH8vsHuFtyI78aF09lw5mbi3lMB6uiK5S2wE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "689b76bcf36055afdeb2e9852f5ecdd2bf483f87", + "rev": "23d785aa6f853e6cf3430119811c334025bbef55", "type": "github" }, "original": { @@ -210,11 +210,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1643101725, - "narHash": "sha256-hHHwMMSNvyXF7TEq4OkQXn3kRnFM52fmFSoXbkFF4WU=", + "lastModified": 1645355333, + "narHash": "sha256-T6x1HPxTZCS2oXlbeh7YSqivkuDdP3Rfxq7zW7el3UM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "7f063ec4b868adcedc3a60edd40226e722c39b20", + "rev": "cc244a8ef1a6b116e5254d838fdf28a37c370b48", "type": "github" }, "original": { @@ -226,11 +226,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1643087856, - "narHash": "sha256-EreC7gP/T566PDRZjqNoTvByTyvABEpJpWFtyNUDS0Y=", + "lastModified": 1645013224, + "narHash": "sha256-b7OEC8vwzJv3rsz9pwnTX2LQDkeOWz2DbKypkVvNHXc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "8bd55a6a5ab05942af769c2aa2494044bff7f625", + "rev": "b66b39216b1fef2d8c33cc7a5c72d8da80b79970", "type": "github" }, "original": { @@ -278,11 +278,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1643552572, - "narHash": "sha256-D7VC0Fp1a7+E03D3NuZNNXO4T44UWOVNBDK1fuKVQD4=", + "lastModified": 1645107880, + "narHash": "sha256-KuZkokcjhK1PRvIiU2aWszozx3fPOJ3shR7rlUaVraQ=", "owner": "m15a", "repo": "nixpkgs-vim-extra-plugins", - "rev": "fbc282994561119dd67bdc40566a67a5584ac6b2", + "rev": "4dfa3d3ec4a1b74958e7e62c0ebff918fb084a39", "type": "github" }, "original": { diff --git a/modules/applications/kdeconnect.nix b/modules/applications/kdeconnect.nix index e01ba9e..e1c983f 100644 --- a/modules/applications/kdeconnect.nix +++ b/modules/applications/kdeconnect.nix @@ -2,4 +2,13 @@ home-manager.users.adrielus = { services.kdeconnect.enable = true; }; + + # Open port for kdeconfig + # networking.firewall.extraCommands = '' + # iptables -A nixos-fw -p tcp --source 192.0.2.0/24 --dport 1714:1764 -j nixos-fw-accept + # iptables -A nixos-fw -p udp --source 192.0.2.0/24 --dport 1714:1764 -j nixos-fw-accept + # ''; + + networking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }]; + networking.firewall.allowedUDPPortRanges = [{ from = 1714; to = 1764; }]; } diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix index f4f13f5..3314fad 100644 --- a/modules/applications/misc.nix +++ b/modules/applications/misc.nix @@ -32,7 +32,7 @@ # editors # vscodium vscode - vim + # vim # emacs # chat apps @@ -45,8 +45,8 @@ # browsers google-chrome - brave - firefox + # brave + # firefox # other stuff obsidian # knowedge base @@ -72,6 +72,6 @@ # games # tetrio-desktop # mindustry - edopro + # edopro ]; } diff --git a/modules/overlays/default.nix b/modules/overlays/default.nix index ab0cecb..7059e18 100644 --- a/modules/overlays/default.nix +++ b/modules/overlays/default.nix @@ -4,6 +4,6 @@ (import ./npm.nix) # I hope this works (spoiler: it did not) - (import ./edopro) + # (import ./edopro) ]; }