From bd4d15f313b7af2a61f1ecd3f4de36105f07b4fc Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Fri, 8 Mar 2024 12:49:42 -0800 Subject: make wallpaper a flake --- flake.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1502f99..ce76894 100644 --- a/flake.nix +++ b/flake.nix @@ -12,30 +12,33 @@ url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; }; + wallpapers.url = "github:ret2pop/wallpapers"; }; - outputs = inputs@{ nixpkgs, home-manager, nur, disko, ... }: { + outputs = { self, nixpkgs, home-manager, nur, disko, wallpapers, ... }@attrs: { nixosConfigurations = { continuity = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + specialArgs = attrs; modules = [ { nixpkgs.overlays = [ nur.overlay ]; } ({ pkgs, ... }: - let - nur-no-pkgs = import nur { - inherit pkgs; - nurpkgs = import nixpkgs { system = "x86_64-linux"; }; - }; - in { - imports = [ ]; - }) + let + nur-no-pkgs = import nur { + inherit pkgs; + nurpkgs = import nixpkgs { system = "x86_64-linux"; }; + }; + in + { + imports = [ ]; + }) ./configuration.nix disko.nixosModules.disko home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; + home-manager.extraSpecialArgs = attrs; home-manager.useUserPackages = true; - home-manager.users.preston = import ./home.nix; } ]; -- cgit