From 5e50a8235d76df283c5d115b227c951814d34f2c Mon Sep 17 00:00:00 2001 From: fuckwit Date: Sat, 11 Jan 2025 19:52:15 +0100 Subject: [PATCH] unify config a bit --- .gitea/workflows/nix-flake-check.yaml | 5 +- flake.lock | 988 +----------------- flake.nix | 40 +- home-modules/firefox/default.nix | 9 +- home/configurations.nix | 15 +- .../framework/programs/firefox/userChrome.css | 76 -- home/framework/programs/hyprland/default.nix | 6 +- home/work/default.nix | 2 +- home/work/pkgs.nix | 12 - home/work/programs/firefox/default.nix | 106 +- home/work/programs/firefox/userChrome.css | 88 -- home/work/programs/hyprland/default.nix | 103 +- nixos/configurations.nix | 2 - outputs.nix | 1 - 14 files changed, 166 insertions(+), 1287 deletions(-) delete mode 100644 home/framework/programs/firefox/userChrome.css delete mode 100644 home/work/programs/firefox/userChrome.css diff --git a/.gitea/workflows/nix-flake-check.yaml b/.gitea/workflows/nix-flake-check.yaml index c3f090e..2b214fe 100644 --- a/.gitea/workflows/nix-flake-check.yaml +++ b/.gitea/workflows/nix-flake-check.yaml @@ -1,5 +1,8 @@ name: nix flake check -on: [push] +on: + push: + branches: + - 'renovate/**' jobs: nix-flake-update: diff --git a/flake.lock b/flake.lock index ce7ccc4..89b5176 100644 --- a/flake.lock +++ b/flake.lock @@ -16,72 +16,6 @@ "type": "gitlab" } }, - "cachix": { - "inputs": { - "devenv": "devenv_2", - "flake-compat": [ - "devenv", - "flake-compat" - ], - "git-hooks": [ - "devenv", - "pre-commit-hooks" - ], - "nixpkgs": [ - "devenv", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1726520618, - "narHash": "sha256-jOsaBmJ/EtX5t/vbylCdS7pWYcKGmWOKg4QKUzKr6dA=", - "owner": "cachix", - "repo": "cachix", - "rev": "695525f9086542dfb09fde0871dbf4174abbf634", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "cachix", - "type": "github" - } - }, - "cachix_2": { - "inputs": { - "devenv": "devenv_3", - "flake-compat": [ - "devenv", - "cachix", - "devenv", - "flake-compat" - ], - "nixpkgs": [ - "devenv", - "cachix", - "devenv", - "nixpkgs" - ], - "pre-commit-hooks": [ - "devenv", - "cachix", - "devenv", - "pre-commit-hooks" - ] - }, - "locked": { - "lastModified": 1712055811, - "narHash": "sha256-7FcfMm5A/f02yyzuavJe06zLa9hcMHsagE28ADcmQvk=", - "owner": "cachix", - "repo": "cachix", - "rev": "02e38da89851ec7fec3356a5c04bc8349cae0e30", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "cachix", - "type": "github" - } - }, "crane": { "locked": { "lastModified": 1731098351, @@ -119,100 +53,6 @@ "type": "github" } }, - "devenv": { - "inputs": { - "cachix": "cachix", - "flake-compat": "flake-compat_3", - "nix": "nix_3", - "nixpkgs": [ - "nixpkgs" - ], - "pre-commit-hooks": "pre-commit-hooks_2" - }, - "locked": { - "lastModified": 1729190222, - "narHash": "sha256-FhlknassIb3rKEucqnfFAzgny1ANmenJcTyRaXYwbA0=", - "owner": "cachix", - "repo": "devenv", - "rev": "e6464200390e502e3cff45f82b6dbe8c6760fab5", - "type": "github" - }, - "original": { - "owner": "cachix", - "ref": "latest", - "repo": "devenv", - "type": "github" - } - }, - "devenv_2": { - "inputs": { - "cachix": "cachix_2", - "flake-compat": [ - "devenv", - "cachix", - "flake-compat" - ], - "nix": "nix_2", - "nixpkgs": [ - "devenv", - "cachix", - "nixpkgs" - ], - "pre-commit-hooks": [ - "devenv", - "cachix", - "git-hooks" - ] - }, - "locked": { - "lastModified": 1723156315, - "narHash": "sha256-0JrfahRMJ37Rf1i0iOOn+8Z4CLvbcGNwa2ChOAVrp/8=", - "owner": "cachix", - "repo": "devenv", - "rev": "ff5eb4f2accbcda963af67f1a1159e3f6c7f5f91", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "devenv", - "type": "github" - } - }, - "devenv_3": { - "inputs": { - "flake-compat": [ - "devenv", - "cachix", - "devenv", - "cachix", - "flake-compat" - ], - "nix": "nix", - "nixpkgs": "nixpkgs", - "poetry2nix": "poetry2nix", - "pre-commit-hooks": [ - "devenv", - "cachix", - "devenv", - "cachix", - "pre-commit-hooks" - ] - }, - "locked": { - "lastModified": 1708704632, - "narHash": "sha256-w+dOIW60FKMaHI1q5714CSibk99JfYxm0CzTinYWr+Q=", - "owner": "cachix", - "repo": "devenv", - "rev": "2ee4450b0f4b95a1b90f2eb5ffea98b90e48c196", - "type": "github" - }, - "original": { - "owner": "cachix", - "ref": "python-rewrite", - "repo": "devenv", - "type": "github" - } - }, "devshell": { "inputs": { "nixpkgs": [ @@ -235,48 +75,6 @@ "type": "github" } }, - "emacs": { - "inputs": { - "nixpkgs": "nixpkgs_5", - "nixpkgs-stable": "nixpkgs-stable_3" - }, - "locked": { - "lastModified": 1736561340, - "narHash": "sha256-0XHscP7gxUKIhH4z2a3+gtobJMExs7mtfb9RuU9J8is=", - "owner": "nix-community", - "repo": "emacs-overlay", - "rev": "f776f828fe9de155a4b1139266e5aa557e8d2d22", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "emacs-overlay", - "type": "github" - } - }, - "fenix": { - "inputs": { - "nixpkgs": [ - "nixpkgs-f2k", - "nixpkgs-fmt", - "nixpkgs" - ], - "rust-analyzer-src": "rust-analyzer-src" - }, - "locked": { - "lastModified": 1637475807, - "narHash": "sha256-E3nzOvlzZXwyo8Stp5upKsTCDcqUTYAFj4EC060A31c=", - "owner": "nix-community", - "repo": "fenix", - "rev": "960e7fef45692a4fffc6df6d6b613b0399bbdfd5", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "fenix", - "type": "github" - } - }, "flake-compat": { "flake": false, "locked": { @@ -294,22 +92,6 @@ } }, "flake-compat_2": { - "flake": false, - "locked": { - "lastModified": 1673956053, - "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "flake-compat_3": { "flake": false, "locked": { "lastModified": 1696426674, @@ -325,6 +107,20 @@ "type": "github" } }, + "flake-compat_3": { + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "revCount": 57, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" + } + }, "flake-compat_4": { "flake": false, "locked": { @@ -341,59 +137,7 @@ "type": "github" } }, - "flake-compat_5": { - "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", - "revCount": 57, - "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz" - }, - "original": { - "type": "tarball", - "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" - } - }, - "flake-compat_6": { - "flake": false, - "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-parts": { - "inputs": { - "nixpkgs-lib": [ - "devenv", - "nix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1712014858, - "narHash": "sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm+GpZNw=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "9126214d0a59633752a136528f5f3b9aa8565b7d", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "lanzaboote", @@ -414,9 +158,9 @@ "type": "github" } }, - "flake-parts_3": { + "flake-parts_2": { "inputs": { - "nixpkgs-lib": "nixpkgs-lib_2" + "nixpkgs-lib": "nixpkgs-lib" }, "locked": { "lastModified": 1730504689, @@ -432,7 +176,7 @@ "type": "github" } }, - "flake-parts_4": { + "flake-parts_3": { "inputs": { "nixpkgs-lib": [ "nixvim", @@ -454,10 +198,10 @@ "type": "github" } }, - "flake-parts_5": { + "flake-parts_4": { "inputs": { "nixpkgs-lib": [ - "nurpkgs", + "nur", "nixpkgs" ] }, @@ -479,39 +223,6 @@ "inputs": { "systems": "systems_2" }, - "locked": { - "lastModified": 1689068808, - "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { - "locked": { - "lastModified": 1667395993, - "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_3": { - "inputs": { - "systems": "systems_3" - }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", @@ -526,24 +237,9 @@ "type": "github" } }, - "flake-utils_4": { - "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_5": { + "flake-utils_2": { "inputs": { - "systems": "systems_4" + "systems": "systems_3" }, "locked": { "lastModified": 1731533236, @@ -566,7 +262,7 @@ "nixvim", "flake-compat" ], - "gitignore": "gitignore_3", + "gitignore": "gitignore_2", "nixpkgs": [ "nixvim", "nixvim", @@ -593,28 +289,6 @@ } }, "gitignore": { - "inputs": { - "nixpkgs": [ - "devenv", - "pre-commit-hooks", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1709087332, - "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, - "gitignore_2": { "inputs": { "nixpkgs": [ "lanzaboote", @@ -636,7 +310,7 @@ "type": "github" } }, - "gitignore_3": { + "gitignore_2": { "inputs": { "nixpkgs": [ "nixvim", @@ -734,9 +408,11 @@ "lanzaboote": { "inputs": { "crane": "crane", - "flake-compat": "flake-compat_4", - "flake-parts": "flake-parts_2", - "nixpkgs": "nixpkgs_3", + "flake-compat": "flake-compat_2", + "flake-parts": "flake-parts", + "nixpkgs": [ + "nixpkgs" + ], "pre-commit-hooks-nix": "pre-commit-hooks-nix", "rust-overlay": "rust-overlay" }, @@ -754,50 +430,6 @@ "type": "github" } }, - "libgit2": { - "flake": false, - "locked": { - "lastModified": 1697646580, - "narHash": "sha256-oX4Z3S9WtJlwvj0uH9HlYcWv+x1hqp8mhXl7HsLu2f0=", - "owner": "libgit2", - "repo": "libgit2", - "rev": "45fd9ed7ae1a9b74b957ef4f337bc3c8b3df01b5", - "type": "github" - }, - "original": { - "owner": "libgit2", - "repo": "libgit2", - "type": "github" - } - }, - "nix": { - "inputs": { - "flake-compat": "flake-compat_2", - "nixpkgs": [ - "devenv", - "cachix", - "devenv", - "cachix", - "devenv", - "nixpkgs" - ], - "nixpkgs-regression": "nixpkgs-regression" - }, - "locked": { - "lastModified": 1712911606, - "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=", - "owner": "domenkozar", - "repo": "nix", - "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12", - "type": "github" - }, - "original": { - "owner": "domenkozar", - "ref": "devenv-2.21", - "repo": "nix", - "type": "github" - } - }, "nix-darwin": { "inputs": { "nixpkgs": [ @@ -820,123 +452,22 @@ "type": "github" } }, - "nix-github-actions": { - "inputs": { - "nixpkgs": [ - "devenv", - "cachix", - "devenv", - "cachix", - "devenv", - "poetry2nix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1688870561, - "narHash": "sha256-4UYkifnPEw1nAzqqPOTL2MvWtm3sNGw1UTYTalkTcGY=", - "owner": "nix-community", - "repo": "nix-github-actions", - "rev": "165b1650b753316aa7f1787f3005a8d2da0f5301", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nix-github-actions", - "type": "github" - } - }, - "nix_2": { - "inputs": { - "flake-compat": [ - "devenv", - "cachix", - "devenv", - "flake-compat" - ], - "nixpkgs": [ - "devenv", - "cachix", - "devenv", - "nixpkgs" - ], - "nixpkgs-regression": "nixpkgs-regression_2" - }, - "locked": { - "lastModified": 1712911606, - "narHash": "sha256-BGvBhepCufsjcUkXnEEXhEVjwdJAwPglCC2+bInc794=", - "owner": "domenkozar", - "repo": "nix", - "rev": "b24a9318ea3f3600c1e24b4a00691ee912d4de12", - "type": "github" - }, - "original": { - "owner": "domenkozar", - "ref": "devenv-2.21", - "repo": "nix", - "type": "github" - } - }, - "nix_3": { - "inputs": { - "flake-compat": [ - "devenv", - "flake-compat" - ], - "flake-parts": "flake-parts", - "libgit2": "libgit2", - "nixpkgs": "nixpkgs_2", - "nixpkgs-23-11": "nixpkgs-23-11", - "nixpkgs-regression": "nixpkgs-regression_3", - "pre-commit-hooks": "pre-commit-hooks" - }, - "locked": { - "lastModified": 1727438425, - "narHash": "sha256-X8ES7I1cfNhR9oKp06F6ir4Np70WGZU5sfCOuNBEwMg=", - "owner": "domenkozar", - "repo": "nix", - "rev": "f6c5ae4c1b2e411e6b1e6a8181cc84363d6a7546", - "type": "github" - }, - "original": { - "owner": "domenkozar", - "ref": "devenv-2.24", - "repo": "nix", - "type": "github" - } - }, "nixpkgs": { "locked": { - "lastModified": 1692808169, - "narHash": "sha256-x9Opq06rIiwdwGeK2Ykj69dNc2IvUH1fY55Wm7atwrE=", + "lastModified": 1736344531, + "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9201b5ff357e781bf014d0330d18555695df7ba8", + "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixpkgs-unstable", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, - "nixpkgs-23-11": { - "locked": { - "lastModified": 1717159533, - "narHash": "sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446", - "type": "github" - }, - "original": { - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446", - "type": "github" - } - }, "nixpkgs-24_11": { "locked": { "lastModified": 1734083684, @@ -952,65 +483,7 @@ "type": "indirect" } }, - "nixpkgs-f2k": { - "inputs": { - "emacs": "emacs", - "nixpkgs": [ - "nixpkgs" - ], - "nixpkgs-fmt": "nixpkgs-fmt", - "parts": "parts" - }, - "locked": { - "lastModified": 1736563861, - "narHash": "sha256-8CN1eCiY0OWN3S/0EzYpUBteUI2Qg5O8mLKawgGTq0Q=", - "owner": "fortuneteller2k", - "repo": "nixpkgs-f2k", - "rev": "450696bae866abf35c00cd5f24d855a481c78da9", - "type": "github" - }, - "original": { - "owner": "fortuneteller2k", - "repo": "nixpkgs-f2k", - "type": "github" - } - }, - "nixpkgs-fmt": { - "inputs": { - "fenix": "fenix", - "flake-utils": "flake-utils_4", - "nixpkgs": [ - "nixpkgs-f2k", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1721822211, - "narHash": "sha256-zacOgNv3qM3AbSG3p5PT/Bfc4c7NoIqoLII8/jIUsOQ=", - "owner": "nix-community", - "repo": "nixpkgs-fmt", - "rev": "bdb15b4c7e0cb49ae091dd43113d0a938afae02c", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixpkgs-fmt", - "type": "github" - } - }, "nixpkgs-lib": { - "locked": { - "lastModified": 1735774519, - "narHash": "sha256-CewEm1o2eVAnoqb6Ml+Qi9Gg/EfNAxbRx1lANGVyoLI=", - "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" - }, - "original": { - "type": "tarball", - "url": "https://github.com/NixOS/nixpkgs/archive/e9b51731911566bbf7e4895475a87fe06961de0b.tar.gz" - } - }, - "nixpkgs-lib_2": { "locked": { "lastModified": 1730504152, "narHash": "sha256-lXvH/vOfb4aGYyvFmZK/HlsNsr/0CVWlwYvo2rxJk3s=", @@ -1022,71 +495,7 @@ "url": "https://github.com/NixOS/nixpkgs/archive/cc2f28000298e1269cea6612cd06ec9979dd5d7f.tar.gz" } }, - "nixpkgs-regression": { - "locked": { - "lastModified": 1643052045, - "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - }, - "original": { - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - } - }, - "nixpkgs-regression_2": { - "locked": { - "lastModified": 1643052045, - "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - }, - "original": { - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - } - }, - "nixpkgs-regression_3": { - "locked": { - "lastModified": 1643052045, - "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - }, - "original": { - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", - "type": "github" - } - }, "nixpkgs-stable": { - "locked": { - "lastModified": 1720386169, - "narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "194846768975b7ad2c4988bdb82572c00222c0d7", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-stable_2": { "locked": { "lastModified": 1730741070, "narHash": "sha256-edm8WG19kWozJ/GqyYx2VjW99EdhjKwbY3ZwdlPAAlo=", @@ -1102,103 +511,7 @@ "type": "github" } }, - "nixpkgs-stable_3": { - "locked": { - "lastModified": 1736200483, - "narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-24.11", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs-stable_4": { - "locked": { - "lastModified": 1720535198, - "narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-23.11", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_2": { - "locked": { - "lastModified": 1717432640, - "narHash": "sha256-+f9c4/ZX5MWDOuB1rKoWj+lBNm0z0rs4CK47HBLxy1o=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "88269ab3044128b7c2f4c7d68448b2fb50456870", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "release-24.05", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1731919951, - "narHash": "sha256-vOM6ETpl1yu9KLi/icTmLJIPbbdJCdAVYUXZceO/Ce4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "04386ac325a813047fc314d4b4d838a5b1e3c7fe", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable-small", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_4": { - "locked": { - "lastModified": 1736344531, - "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_5": { - "locked": { - "lastModified": 1736344531, - "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_6": { "locked": { "lastModified": 1731676054, "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", @@ -1214,41 +527,9 @@ "type": "github" } }, - "nixpkgs_7": { - "locked": { - "lastModified": 1736344531, - "narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_8": { - "locked": { - "lastModified": 1731763621, - "narHash": "sha256-ddcX4lQL0X05AYkrkV2LMFgGdRvgap7Ho8kgon3iWZk=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c69a9bffbecde46b4b939465422ddc59493d3e4d", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixvim": { "inputs": { - "flake-parts": "flake-parts_3", + "flake-parts": "flake-parts_2", "nixpkgs": [ "nixpkgs" ], @@ -1271,12 +552,12 @@ "nixvim_2": { "inputs": { "devshell": "devshell", - "flake-compat": "flake-compat_5", - "flake-parts": "flake-parts_4", + "flake-compat": "flake-compat_3", + "flake-parts": "flake-parts_3", "git-hooks": "git-hooks", "home-manager": "home-manager_2", "nix-darwin": "nix-darwin", - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_2", "nuschtosSearch": "nuschtosSearch", "treefmt-nix": "treefmt-nix" }, @@ -1294,10 +575,12 @@ "type": "github" } }, - "nurpkgs": { + "nur": { "inputs": { - "flake-parts": "flake-parts_5", - "nixpkgs": "nixpkgs_7", + "flake-parts": "flake-parts_4", + "nixpkgs": [ + "nixpkgs" + ], "treefmt-nix": "treefmt-nix_2" }, "locked": { @@ -1316,7 +599,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_5", + "flake-utils": "flake-utils_2", "ixx": "ixx", "nixpkgs": [ "nixvim", @@ -1338,99 +621,18 @@ "type": "github" } }, - "parts": { - "inputs": { - "nixpkgs-lib": "nixpkgs-lib" - }, - "locked": { - "lastModified": 1736143030, - "narHash": "sha256-+hu54pAoLDEZT9pjHlqL9DNzWz0NbUn8NEAHP7PQPzU=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "b905f6fc23a9051a6e1b741e1438dbfc0634c6de", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "poetry2nix": { - "inputs": { - "flake-utils": "flake-utils", - "nix-github-actions": "nix-github-actions", - "nixpkgs": [ - "devenv", - "cachix", - "devenv", - "cachix", - "devenv", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1692876271, - "narHash": "sha256-IXfZEkI0Mal5y1jr6IRWMqK8GW2/f28xJenZIPQqkY0=", - "owner": "nix-community", - "repo": "poetry2nix", - "rev": "d5006be9c2c2417dafb2e2e5034d83fabd207ee3", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "poetry2nix", - "type": "github" - } - }, - "pre-commit-hooks": { - "inputs": { - "flake-compat": [ - "devenv", - "nix" - ], - "flake-utils": "flake-utils_2", - "gitignore": [ - "devenv", - "nix" - ], - "nixpkgs": [ - "devenv", - "nix", - "nixpkgs" - ], - "nixpkgs-stable": [ - "devenv", - "nix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1712897695, - "narHash": "sha256-nMirxrGteNAl9sWiOhoN5tIHyjBbVi5e2tgZUgZlK3Y=", - "owner": "cachix", - "repo": "pre-commit-hooks.nix", - "rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "pre-commit-hooks.nix", - "type": "github" - } - }, "pre-commit-hooks-nix": { "inputs": { "flake-compat": [ "lanzaboote", "flake-compat" ], - "gitignore": "gitignore_2", + "gitignore": "gitignore", "nixpkgs": [ "lanzaboote", "nixpkgs" ], - "nixpkgs-stable": "nixpkgs-stable_2" + "nixpkgs-stable": "nixpkgs-stable" }, "locked": { "lastModified": 1731363552, @@ -1446,67 +648,19 @@ "type": "github" } }, - "pre-commit-hooks_2": { - "inputs": { - "flake-compat": [ - "devenv", - "flake-compat" - ], - "gitignore": "gitignore", - "nixpkgs": [ - "devenv", - "nixpkgs" - ], - "nixpkgs-stable": "nixpkgs-stable" - }, - "locked": { - "lastModified": 1726745158, - "narHash": "sha256-D5AegvGoEjt4rkKedmxlSEmC+nNLMBPWFxvmYnVLhjk=", - "owner": "cachix", - "repo": "pre-commit-hooks.nix", - "rev": "4e743a6920eab45e8ba0fbe49dc459f1423a4b74", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "pre-commit-hooks.nix", - "type": "github" - } - }, "root": { "inputs": { "deploy": "deploy", - "devenv": "devenv", - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils", "home-manager": "home-manager", "lanzaboote": "lanzaboote", - "nixpkgs": "nixpkgs_4", - "nixpkgs-f2k": "nixpkgs-f2k", - "nixpkgs-stable": "nixpkgs-stable_4", + "nixpkgs": "nixpkgs", "nixvim": "nixvim", - "nurpkgs": "nurpkgs", - "rycee-nurpkgs": "rycee-nurpkgs", + "nur": "nur", "simple-nixos-mailserver": "simple-nixos-mailserver", "sops-nix": "sops-nix" } }, - "rust-analyzer-src": { - "flake": false, - "locked": { - "lastModified": 1637439871, - "narHash": "sha256-2awQ/obzl7zqYgLwbQL0zT58gN8Xq7n+81GcMiS595I=", - "owner": "rust-analyzer", - "repo": "rust-analyzer", - "rev": "4566414789310acb2617543f4b50beab4bb48e06", - "type": "github" - }, - "original": { - "owner": "rust-analyzer", - "ref": "nightly", - "repo": "rust-analyzer", - "type": "github" - } - }, "rust-overlay": { "inputs": { "nixpkgs": [ @@ -1528,35 +682,10 @@ "type": "github" } }, - "rycee-nurpkgs": { - "inputs": { - "flake-utils": [ - "flake-utils" - ], - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "dir": "pkgs/firefox-addons", - "lastModified": 1736568198, - "narHash": "sha256-RBTk5KavYsPZ56m9C2evS4pDkEu3+NdxY6mFNbo8DH8=", - "owner": "rycee", - "repo": "nur-expressions", - "rev": "7f8746a7ef2d15b8fb4acc63cb0d7e3a407739bf", - "type": "gitlab" - }, - "original": { - "dir": "pkgs/firefox-addons", - "owner": "rycee", - "repo": "nur-expressions", - "type": "gitlab" - } - }, "simple-nixos-mailserver": { "inputs": { "blobs": "blobs", - "flake-compat": "flake-compat_6", + "flake-compat": "flake-compat_4", "nixpkgs": [ "nixpkgs" ], @@ -1579,7 +708,9 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_8" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1736515725, @@ -1640,21 +771,6 @@ "type": "github" } }, - "systems_4": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -1680,7 +796,7 @@ "treefmt-nix_2": { "inputs": { "nixpkgs": [ - "nurpkgs", + "nur", "nixpkgs" ] }, diff --git a/flake.nix b/flake.nix index a94f2bf..bb4e94b 100644 --- a/flake.nix +++ b/flake.nix @@ -3,16 +3,28 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11"; - flake-utils.url = "github:numtide/flake-utils"; + + lanzaboote = { + url = "github:nix-community/lanzaboote"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + sops-nix = { + url = "github:Mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + nur = { + url = "github:nix-community/NUR"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + deploy = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; }; - nurpkgs.url = "github:nix-community/NUR"; - sops-nix.url = "github:Mic92/sops-nix"; - lanzaboote.url = "github:nix-community/lanzaboote"; + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -23,24 +35,6 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - rycee-nurpkgs = { - url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; - inputs = { - nixpkgs.follows = "nixpkgs"; - flake-utils.follows = "flake-utils"; - }; - }; - - nixpkgs-f2k = { - url = "github:fortuneteller2k/nixpkgs-f2k"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - - devenv = { - url = "github:cachix/devenv/latest"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - nixvim = { url = "git+https://git.fuckwit.dev/fuckwit/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/home-modules/firefox/default.nix b/home-modules/firefox/default.nix index 7f9bdc4..3a3c47d 100644 --- a/home-modules/firefox/default.nix +++ b/home-modules/firefox/default.nix @@ -76,10 +76,10 @@ in { enable = mkEnableOption "Apply personal firefox defaults."; package = mkPackageOption pkgs "firefox-bin" {}; - extensions = mkOption { + extraExtensions = mkOption { type = types.listOf types.package; - default = defaultExtensions; - description = "Firefox extensions to install."; + default = []; + description = "Extra Firefox extensions to install."; }; settings = mkOption { @@ -102,7 +102,8 @@ in { isDefault = true; id = 0; userChrome = builtins.readFile ./userChrome.css; - inherit (cfg) extensions settings; + extensions = defaultExtensions ++ cfg.extraExtensions; + inherit (cfg) settings; }; }; }; diff --git a/home/configurations.nix b/home/configurations.nix index 687c166..b2db5f9 100644 --- a/home/configurations.nix +++ b/home/configurations.nix @@ -1,29 +1,18 @@ { nixpkgs, - nurpkgs, + nur, home-manager, - devenv, nixvim, ... }: let pkgs = import nixpkgs rec { system = "x86_64-linux"; - overlays = [(final: prev: {nixvim = nixvim.packages.${system}.default;}) nurpkgs.overlays.default]; - }; - - nur = import nurpkgs { - inherit pkgs; - nurpkgs = pkgs; + overlays = [(final: prev: {nixvim = nixvim.packages.${system}.default;}) nur.overlays.default]; }; in { work = home-manager.lib.homeManagerConfiguration { inherit pkgs; - extraSpecialArgs = { - inherit devenv; # TODO: Remove dependency on devenv - ff-addons = nur.repos.rycee.firefox-addons; - }; - modules = [ ../home-modules/modules-list.nix ./work diff --git a/home/framework/programs/firefox/userChrome.css b/home/framework/programs/firefox/userChrome.css deleted file mode 100644 index 999ee3a..0000000 --- a/home/framework/programs/firefox/userChrome.css +++ /dev/null @@ -1,76 +0,0 @@ -/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbars_below_content_v2.css made available under Mozilla Public License v. 2.0 -See the above repository for updates as well as full license text. */ - -/* This requires Firefox 133 - * By default tabs will be the top-most toolbar, but you can set the following pref to move them to bottom: - * userchrome.toolbars-below-content.tabs-at-bottom.enabled - */ - -#navigator-toolbox{ - display: contents; - --uc-navbar-height: 40px; -} -:root[uidensity="compact"] #navigator-toolbox{ - --uc-navbar-height: 34px; -} -#main-window > body > #browser, -.global-notificationbox, - #tab-notification-deck, - #toolbar-menubar{ - order: -1; -} - -#TabsToolbar{ - max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin,0px)) * var(--multirow-n-rows,1)); -} -#toolbar-menubar, -#TabsToolbar{ - background: inherit !important; -} -@media (-moz-platform: linux){ - :root[sizemode="normal"][customtitlebar] #toolbar-menubar{ - border-top-left-radius: inherit; - border-top-right-radius: inherit; - } - #toolbar-menubar, - #TabsToolbar{ - opacity: 1 !important; - will-change: unset !important; - } - #notification-popup[side="top"]{ - margin-top: calc(-2 * var(--panel-padding-block) - 40px - 32px - 8.5em) !important; - } - #permission-popup[side="top"]{ - margin-top: calc(-2 * var(--panel-padding-block) - 2.5em); - } -} - -#nav-bar, -#PersonalToolbar{ - background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)), var(--lwt-additional-images,var(--toolbar-bgimage)) !important; - background-position: top,var(--lwt-background-alignment); - background-position-y: calc(0px - var(--tab-min-height) - 2*var(--tab-block-margin,0px)); - background-repeat: repeat,var(--lwt-background-tiling); -} -:root[lwtheme-image] #nav-bar, -:root[lwtheme-image] #PersonalToolbar{ - background-image: linear-gradient(var(--toolbar-bgcolor),var(--toolbar-bgcolor)),var(--lwt-header-image), var(--lwt-additional-images,var(--toolbar-bgimage)) !important; -} -#PersonalToolbar{ - background-position-y: calc(0px - var(--tab-min-height) - 2*var(--tab-block-margin,0px) - var( --uc-navbar-height)); -} -#urlbar[breakout][breakout-extend]{ - display: flex !important; - flex-direction: column-reverse !important; - transform: translateY(calc(var(--urlbar-container-height) - 100%)); -} -#urlbar[breakout-extend]:not([usertyping]) > .urlbar-input-container::after{ - display: flex; - content: ""; - height: calc(var(--urlbar-min-height) - 2px - 2 * var(--urlbar-container-padding)); -} -.urlbarView-body-inner{ border-top-style: none !important; } - -#TabsToolbar{ - order: 3 -} diff --git a/home/framework/programs/hyprland/default.nix b/home/framework/programs/hyprland/default.nix index e649412..1b1f643 100644 --- a/home/framework/programs/hyprland/default.nix +++ b/home/framework/programs/hyprland/default.nix @@ -28,7 +28,7 @@ monitor = ""; path = "screenshot"; - blur_passes = 1; + blur_passes = 2; blur_size = 7; noise = 1.17e-2; }; @@ -58,8 +58,8 @@ monitor = ""; size = "200,50"; outline_thickness = 2; - dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8 - dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0 + dots_size = 0.2; + dots_spacing = 0.35; dots_center = true; outer_color = "rgba(0, 0, 0, 0)"; inner_color = "rgba(0, 0, 0, 0.2)"; diff --git a/home/work/default.nix b/home/work/default.nix index cb2324f..bca6f6c 100644 --- a/home/work/default.nix +++ b/home/work/default.nix @@ -1,7 +1,7 @@ { config, pkgs, - devenv, + # devenv, ... }: { home = { diff --git a/home/work/pkgs.nix b/home/work/pkgs.nix index 27724cb..3840e39 100644 --- a/home/work/pkgs.nix +++ b/home/work/pkgs.nix @@ -1,15 +1,10 @@ {pkgs, ...}: with pkgs; [ age # Modern encryption tool with small explicit keys - arandr # simple GUI for xrandr atuin dig # dns command-line tool fd # "find" for files - # geckodriver # remote controll firefox - helix # modal editor htop # process monitor - hyperfine # command-line benchmarking tool - # i3lock # screen locker imagemagick # selection screenshot stuff just # just a command runner keepassxc # password manager @@ -22,21 +17,14 @@ with pkgs; [ mtr # traceroute mumble # voice call client ncdu # disk space info (a better du) - # neovim-unwrapped # best code editor on the planet networkmanagerapplet # systray applet for NetworkManager - # nitrogen # wallpapger manager - nushell # A modern shell written in Rust ouch # painless compression and decompression for your terminal pavucontrol # pulseaudio volume control playerctl # music player controller podman-compose # podman manager - restic # incremental backup tool ripgrep # fast grep - # rocketchat-desktop # company chat sops # Mozilla sops (Secrets OPerationS) is an editor of encrypted files thunderbird # email client - # xclip # clipboard support - # xsel # clipboard support (also for neovim) zeal # offline documentation browser zellij # A terminal workspace with batteries included wl-clipboard diff --git a/home/work/programs/firefox/default.nix b/home/work/programs/firefox/default.nix index cdbdb72..4db30c4 100644 --- a/home/work/programs/firefox/default.nix +++ b/home/work/programs/firefox/default.nix @@ -1,106 +1,6 @@ -{ - pkgs, - lib, - stdenv, - specialArgs, - ... -}: let - extensions = with specialArgs.ff-addons; [ - bitwarden - darkreader - i-dont-care-about-cookies - privacy-badger - ublock-origin - # tree-style-tab - # tridactyl - keepassxc-browser - ]; - - userChrome = builtins.readFile ./userChrome.css; - - # ~/.mozilla/firefox/PROFILE_NAME/prefs.js | user.js - settings = { - "app.normandy.first_run" = false; - "app.shield.optoutstudies.enabled" = false; - - # disable updates (pretty pointless with nix) - "app.update.channel" = "default"; - - "browser.contentblocking.category" = "standard"; # "strict" - "browser.ctrlTab.recentlyUsedOrder" = false; - - "browser.download.viewableInternally.typeWasRegistered.svg" = true; - "browser.download.viewableInternally.typeWasRegistered.webp" = true; - "browser.download.viewableInternally.typeWasRegistered.xml" = true; - - "browser.search.region" = "DE"; - - "browser.shell.checkDefaultBrowser" = false; - "browser.tabs.loadInBackground" = true; - "browser.urlbar.placeholderName" = "EnteEnteLauf"; - "browser.urlbar.showSearchSuggestionsFirst" = false; - - # disable all the annoying quick actions - "browser.urlbar.quickactions.enabled" = false; - "browser.urlbar.quickactions.showPrefs" = false; - "browser.urlbar.shortcuts.quickactions" = false; - "browser.urlbar.suggest.quickactions" = false; - - # disable tab preview on hover - "browser.tabs.hoverPreview.enabled" = false; - "browser.tabs.hoverPreview.showThumbnails" = false; - - "distribution.searchplugins.defaultLocale" = "en-US"; - - "doh-rollout.balrog-migration-done" = true; - "doh-rollout.doneFirstRun" = true; - - "general.useragent.locale" = "en-US"; - - "extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; - - "extensions.extensions.activeThemeID" = "firefox-compact-dark@mozilla.org"; - "extensions.update.enabled" = false; - "extensions.webcompat.enable_picture_in_picture_overrides" = true; - "extensions.webcompat.enable_shims" = true; - "extensions.webcompat.perform_injections" = true; - "extensions.webcompat.perform_ua_overrides" = true; - - "privacy.donottrackheader.enabled" = true; - - # Yubikey - "security.webauth.u2f" = true; - "security.webauth.webauthn" = true; - "security.webauth.webauthn_enable_softtoken" = false; - "security.webauth.webauthn_enable_usbtoken" = true; - - "network.dns.ipv4OnlyDomains" = "google.com"; - - "toolkit.legacyUserProfileCustomizations.stylesheets" = true; - "layout.word_select.stop_at_punctuation" = false; - }; -in { - programs.firefox = { +{pkgs, ...}: { + personal.firefox = { enable = true; - - package = pkgs.firefox-bin; - - profiles = { - default = { - isDefault = true; - id = 0; - inherit extensions settings userChrome; - }; - }; - - # webapps = { - # rocket-chat = { - # url = "https://chat.hetzner.company"; - # id = 1; - - # genericName = "Internet Messenger"; - # categories = ["Network" "InstantMessaging"]; - # }; - # }; + extraExtensions = with pkgs.nur.repos.rycee.firefox-addons; [keepassxc-browser]; }; } diff --git a/home/work/programs/firefox/userChrome.css b/home/work/programs/firefox/userChrome.css deleted file mode 100644 index 00da3b9..0000000 --- a/home/work/programs/firefox/userChrome.css +++ /dev/null @@ -1,88 +0,0 @@ -/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/toolbars_below_content.css made available under Mozilla Public License v. 2.0 -See the above repository for updates as well as full license text. */ - -/* Moves tabs toolbar, bookmarks toolbar and main toolbar to the bottom of the window, and makes tabs be the bottom-most toolbar */ - -/* By default, menubar will stay on top with two options to select it's behavior - see below */ - -@-moz-document url(chrome://browser/content/browser.xhtml){ - - #titlebar{ -moz-appearance: none !important; } - - #navigator-toolbox > div{ display: contents } - .global-notificationbox, - #mainPopupSet, - #browser, - #customization-container, - #tab-notification-deck{ - order: -1; - } - - /* Remove the next row if you want tabs to be the top-most row */ - #titlebar{ - order: 2; - } - - #toolbar-menubar{ - position: fixed; - display: flex; - width: 100vw; - top: 0px; - -moz-window-dragging: drag; - } - /* Remove bottom border that won't do anything useful when at bottom of the window */ - #navigator-toolbox{ border-bottom: none !important; } - - #toolbar-menubar > spacer{ flex-grow: 1 } - - #urlbar[breakout][breakout-extend]{ - display: flex !important; - flex-direction: column-reverse; - bottom: 0px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */ - top: auto !important; - } - - .urlbarView-body-inner{ border-top-style: none !important; } - - /* Yeah, removes window controls. Likely not wanted on bottom row */ - #TabsToolbar > .titlebar-buttonbox-container{ display: none } - #toolbar-menubar > .titlebar-buttonbox-container{ order: 1000 } - - /* Fix panels sizing */ - .panel-viewstack{ max-height: unset !important; } - - /* Fullscreen mode support */ - :root[sizemode="fullscreen"] #navigator-toolbox{ margin-top: 0 !important } - :root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{ visibility: collapse } - #fullscr-toggler{ bottom: 0; top: unset !important; } - - /* These three rules exist for compatibility with autohide_toolbox.css */ - #navigator-toolbox{ bottom: 0px; transform-origin: bottom } - #main-window > body > box{ margin-top: 0 !important; } - #toolbar-menubar{ z-index: 1; background-color: var(--lwt-accent-color,black); } - - :root[BookmarksToolbarOverlapsBrowser] #navigator-toolbox{ - margin-block: calc(-1 * var(--bookmarks-toolbar-height)) 0 !important; - } - :root[BookmarksToolbarOverlapsBrowser] .newTabBrowserPanel{ - padding-block: 0 var(--bookmarks-toolbar-height) !important; - } - - /************** - Menubar options - By default, menubar is overlayed on top of web-content - ***************/ - - /* Uncomment the following if you want static menubar on top of the window (make menubar enabled) - * Use when menubar is enabled to always show it */ - - /* - #browser,#customization-container{ padding-top: var(--uc-menubar-spacer,28px) } - */ - - /* OR, uncomment the following if you want menubar to appear below content, above tabs toolbar */ - - #toolbar-menubar{ position: static; display: flex; margin-top: 0px !important; background-color: transparent } - - /* set to "column-reverse" (without quotes) if you want tabs above menubar with the above option */ - #titlebar{ flex-direction: column } -} diff --git a/home/work/programs/hyprland/default.nix b/home/work/programs/hyprland/default.nix index fa3cb11..469418c 100644 --- a/home/work/programs/hyprland/default.nix +++ b/home/work/programs/hyprland/default.nix @@ -1,19 +1,82 @@ {pkgs, ...}: { - wayland.windowManager.hyprland = let - locker = "${pkgs.swaylock}/bin/swaylock"; - set-dpms = "${pkgs.hyprland}/bin/hyprctl dispatcher dpms"; - locked-dpms = pkgs.writeShellScript "locked-dpms.sh" '' - ${pkgs.swayidle}/bin/swayidle -w \ - timeout 10 'if pgrep -x swaylock; then ${set-dpms} off; fi' \ - resume '${set-dpms} on' - ''; - idle-script = pkgs.writeShellScript "idle-lock.sh" '' - ${pkgs.swayidle}/bin/swayidle -w \ - timeout 300 '${locker} -f' \ - timeout 330 '${set-dpms} off' \ - resume '${set-dpms} on' - ''; - in { + services.hypridle = { + enable = true; + + settings = { + general = { + lock_cmd = "pidof hyprlock || hyprlock"; + }; + + listener = [ + { + timeout = 300; + on-timeout = "loginctl lock-session"; + } + { + timeout = 330; + on-timeout = "hyprctl dispatch dpms off"; + on-resume = "hyprctl dispatch dpms on"; + } + ]; + }; + }; + + programs.hyprlock = { + enable = true; + settings = { + background = { + monitor = ""; + path = "screenshot"; + + blur_passes = 2; + blur_size = 7; + noise = 1.17e-2; + }; + + label = [ + { + monitor = ""; + text = "$TIME"; + color = "rgba(242, 243, 244, 0.75)"; + font_size = 95; + position = "0, 300"; + halign = "center"; + valign = "center"; + } + { + monitor = ""; + text = ''cmd[update:1000] echo $(date +"%A, %B %d")''; + color = "rgba(242, 243, 244, 0.75)"; + font_size = 22; + position = "0, 200"; + halign = "center"; + valign = "center"; + } + ]; + + input-field = { + monitor = ""; + size = "200,50"; + outline_thickness = 2; + dots_size = 0.2; + dots_spacing = 0.35; + dots_center = true; + outer_color = "rgba(0, 0, 0, 0)"; + inner_color = "rgba(0, 0, 0, 0.2)"; + font_color = "rgb(111, 45, 104)"; + fade_on_empty = false; + rounding = -1; + check_color = "rgb(30, 107, 204)"; + placeholder_text = ''Input Password...''; + hide_input = false; + position = "0, -100"; + halign = "center"; + valign = "center"; + }; + }; + }; + + wayland.windowManager.hyprland = { enable = true; settings = { @@ -22,16 +85,12 @@ exec-once = [ "${pkgs.waybar}/bin/waybar" "${pkgs.mako}/bin/mako" - idle-script - locked-dpms ]; monitor = [ "eDP-1,1920x1080,0x0,1.333333" # Laptop screen "desc:Dell Inc. DELL P2723DE 79RFH14,2560x1440,1440x0,1" "desc:Dell Inc. DELL P2723DE 39RFH14,2560x1440,4000x0,1" - # "desc:LG Electronics LG ULTRAWIDE 0x000219F2,2560x1080,1440x0,1" # Primary @home - # "desc:Fujitsu Siemens Computers GmbH B22W-6 LED YV3U164923,1680x1050,4000x0,1" # Secondary @home ",preferred,auto,1" # Automatically configure everything else ]; @@ -97,7 +156,7 @@ "$mod, return, exec, ${pkgs.alacritty}/bin/alacritty" "$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun" "$mod SHIFT, Q, killactive, " - "$mod, L, exec, ${locker}" + "$mod, L, exec, loginctl lock-session" "$mod, V, togglefloating, " "$mod, F, fullscreen, 1" "$mod, P, pseudo, # dwindle" @@ -124,10 +183,6 @@ "$mod, mouse:273, resizewindow" ]; - bindl = [ - "$mod SHIFT, L, exec, ${locker}" - ]; - windowrulev2 = [ # KeePassXC "float,class:(org.keepassxc.KeePassXC)" diff --git a/nixos/configurations.nix b/nixos/configurations.nix index af157e6..4a1fe81 100644 --- a/nixos/configurations.nix +++ b/nixos/configurations.nix @@ -1,9 +1,7 @@ { self, nixpkgs, - nixpkgs-stable, sops-nix, - home-manager, lanzaboote, simple-nixos-mailserver, inputs, diff --git a/outputs.nix b/outputs.nix index 8e71c12..b6e21c9 100644 --- a/outputs.nix +++ b/outputs.nix @@ -2,7 +2,6 @@ self, flake-utils, nixpkgs, - nurpkgs, deploy, home-manager, ...