diff --git a/common/default.nix b/common/default.nix index 675d209..6e47fec 100644 --- a/common/default.nix +++ b/common/default.nix @@ -27,6 +27,16 @@ keep-derivations = true; auto-optimise-store = true; warn-dirty = false; + + # Cachix + substituters = [ + "https://hyprland.cachix.org" + "https://nix-gaming.cachix.org" + ]; + trusted-public-keys = [ + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" + ]; }; # Minimize dowloads of indirect nixpkgs flakes diff --git a/flake.lock b/flake.lock index b7b04f3..6b3d813 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1697581947, - "narHash": "sha256-xS6jh9AmDvMLIll8LqJd+yB9MFloBWRudu38jFVCTcQ=", + "lastModified": 1697798291, + "narHash": "sha256-Ge7SRl7U1Aaool+/ShaLOcoEmIrbI5UWqAHbJEh3b48=", "owner": "Aylur", "repo": "ags", - "rev": "57f9ba2a2d504409437a2fb57e117e25ebb8e7aa", + "rev": "e2717d2da7a302760984b2068c0437cea9ec9ad8", "type": "github" }, "original": { @@ -208,7 +208,7 @@ "inputs": { "flake-parts": "flake-parts_3", "haskell-flake": "haskell-flake", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1688568579, @@ -289,19 +289,17 @@ "hyprland": { "inputs": { "hyprland-protocols": "hyprland-protocols", - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs", "systems": "systems", "wlroots": "wlroots", "xdph": "xdph" }, "locked": { - "lastModified": 1697727899, - "narHash": "sha256-mQFa2+JQTyk0BCxmPGTMNxlchplbVLtIOyH2zASiTlA=", + "lastModified": 1697795617, + "narHash": "sha256-+u9Af2+YRj85oRgIr6J+lChTvp4XJx3VqRolqtH/DoY=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "386708563c3d9d85ffd60b4eeb6c767d29f948db", + "rev": "bb9d0aed5bd11879f5a532e26fc0a91d1a8af714", "type": "github" }, "original": { @@ -364,11 +362,11 @@ }, "locked": { "dir": "contrib", - "lastModified": 1697665640, - "narHash": "sha256-dodNEzwAW7MxaHy7BXA8olSZFGna6uB6RBMrf6UD7Sw=", + "lastModified": 1697805347, + "narHash": "sha256-81F8SDf8T2UafVLSi1dZaFRTdQpjN95drIhJANYo1sA=", "owner": "neovim", "repo": "neovim", - "rev": "a8fc94a2fdd07edf0679d34f2deaacb25b3fa69f", + "rev": "6c87d3e0fbf88ae693be11a3ede3a1ec6ec0e30e", "type": "github" }, "original": { @@ -389,11 +387,11 @@ ] }, "locked": { - "lastModified": 1697673677, - "narHash": "sha256-XmHoKwDhhDRPRWPqaYFEkms5Dr34K7/sYmiOwxJv+Pg=", + "lastModified": 1697807109, + "narHash": "sha256-A/JemGssm4pfPlqCSLuJRYHvX9Dp4drJnLuBwPeAi+k=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "1ddf097ce80bfa517cf6475a09bacdc39699496e", + "rev": "29b5f1c2aef88e2b6f41a9d529e50b24802fdb7d", "type": "github" }, "original": { @@ -405,7 +403,7 @@ "nix-eval-jobs": { "inputs": { "flake-parts": "flake-parts_5", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_5", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -425,7 +423,7 @@ "nix-gaming": { "inputs": { "flake-parts": "flake-parts_4", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs_3" }, "locked": { "lastModified": 1697522478, @@ -463,11 +461,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1688322751, - "narHash": "sha256-eW62dC5f33oKZL7VWlomttbUnOTHrAbte9yNUNW8rbk=", + "lastModified": 1694767346, + "narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0fbe93c5a7cac99f90b60bdf5f149383daaa615f", + "rev": "ace5093e36ab1e95cb9463863491bee90d5a4183", "type": "github" }, "original": { @@ -538,11 +536,11 @@ ] }, "locked": { - "lastModified": 1697757329, - "narHash": "sha256-MnzatdflKqVueo+czB04XNbpgV6UXsE0JxEr3xJ3R+o=", + "lastModified": 1697793343, + "narHash": "sha256-5QavicNX1YQxizHmWI42vvrveXGFhDo6wxZUtRzBCH8=", "owner": "nix-community", "repo": "nixpkgs-wayland", - "rev": "05e5ba46897f17e743dc2a6204bf49be650a5ae1", + "rev": "fad6dabaa830ba040cdbebf685c1de476285f1f2", "type": "github" }, "original": { @@ -552,6 +550,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1688322751, + "narHash": "sha256-eW62dC5f33oKZL7VWlomttbUnOTHrAbte9yNUNW8rbk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0fbe93c5a7cac99f90b60bdf5f149383daaa615f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1697009197, "narHash": "sha256-viVRhBTFT8fPJTb1N3brQIpFZnttmwo3JVKNuWRVc3s=", @@ -567,7 +581,7 @@ "type": "github" } }, - "nixpkgs_3": { + "nixpkgs_4": { "locked": { "lastModified": 1697456312, "narHash": "sha256-roiSnrqb5r+ehnKCauPLugoU8S36KgmWraHgRqVYndo=", @@ -583,7 +597,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_5": { "locked": { "lastModified": 1697677194, "narHash": "sha256-lN2eJCsOzjhxrvTQsNcW7r0E9hMJ7ABrKDQWpmYFRkM=", @@ -601,11 +615,11 @@ }, "nur": { "locked": { - "lastModified": 1697773335, - "narHash": "sha256-23NLYLp4KrZhRQ0V3Xc5w8qC9FH7oXdFMKHH2MdcrZw=", + "lastModified": 1697793907, + "narHash": "sha256-V2nTR/bN1GwozE2+Wz/YuuRq2uZhGo8HUSKCteJGQFs=", "owner": "nix-community", "repo": "NUR", - "rev": "dff1ef891b6b64cd61a121c54183758940540506", + "rev": "d531cd7ef0001eaba84743d6666726df3c3b5620", "type": "github" }, "original": { @@ -643,7 +657,7 @@ "neovim-nightly-overlay": "neovim-nightly-overlay", "nix-gaming": "nix-gaming", "nix-melt": "nix-melt", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "nixpkgs-wayland": "nixpkgs-wayland", "nur": "nur", "nurl": "nurl" diff --git a/flake.nix b/flake.nix index f6cb431..39b35bf 100644 --- a/flake.nix +++ b/flake.nix @@ -8,10 +8,7 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - hyprland = { - url = "github:hyprwm/Hyprland"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + hyprland.url = "github:hyprwm/Hyprland"; hyprgrass = { url = "github:horriblename/hyprgrass"; @@ -63,17 +60,17 @@ wim = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; - modules = [ + modules = defaultModules ++ [ ./hosts/wim - ] ++ defaultModules; + ]; }; binto = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; - modules = [ + modules = defaultModules ++ [ ./hosts/binto - ] ++ defaultModules; + ]; }; }; }; diff --git a/hosts/binto/modules/nix-gaming.nix b/hosts/binto/modules/nix-gaming.nix index da1f0ed..d352c34 100644 --- a/hosts/binto/modules/nix-gaming.nix +++ b/hosts/binto/modules/nix-gaming.nix @@ -1,9 +1,4 @@ { nix-gaming, pkgs, ... }: { - nix.settings = { - substituters = ["https://nix-gaming.cachix.org"]; - trusted-public-keys = ["nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="]; - }; - imports = [ nix-gaming.nixosModules.steamCompat ];