From 21b52a31e1eff5c8142f26e091fde083c21db55f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 14 Jan 2025 11:30:32 +0100 Subject: niri --- flake.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index c6eaab47..816fd499 100644 --- a/flake.nix +++ b/flake.nix @@ -4,20 +4,20 @@ nixConfig = { extra-substituters = [ "https://nix-community.cachix.org" + "https://niri.cachix.org" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964=" ]; }; inputs = { nixpkgs = { type = "github"; - # owner = "NixOS"; + owner = "NixOS"; repo = "nixpkgs"; - # ref = "nixos-unstable"; - owner = "gkleen"; - ref = "fix/matrix-synapse"; + ref = "nixos-unstable"; }; nixpkgs-pgbackrest = { type = "github"; @@ -184,9 +184,15 @@ repo = "NixVirt"; inputs.nixpkgs.follows = "nixpkgs"; }; + niri-flake = { + type = "github"; + owner = "sodiboo"; + repo = "niri-flake"; + ref = "main"; + }; }; - outputs = { self, nixpkgs, home-manager, sops-nix, deploy-rs, nvfetcher, ... }@inputs: + outputs = { self, nixpkgs, home-manager, sops-nix, deploy-rs, nvfetcher, niri-flake, ... }@inputs: let inherit (builtins) attrNames attrValues elemAt toJSON isNull pathExists; inherit (nixpkgs) lib; @@ -324,7 +330,7 @@ nixosConfigurations = installerNixosConfigurations // nixImport rec { dir = ./hosts; _import = mkNixosConfiguration [] dir; }; homeModules = nixImport rec { dir = ./home-modules; }; - homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; }) nixosConfig.config.home-manager.users) self.nixosConfigurations)); + homeConfigurations = listToAttrs (concatLists (mapAttrsToList (hostname: nixosConfig: mapAttrsToList (username: configuration: nameValuePair "${username}@${hostname}" { inherit (configuration.home) activationPackage; inherit (configuration) home-files; }) nixosConfig.config.home-manager.users) self.nixosConfigurations)); overlays = mapAttrs (_name: path: mkOverlay path) overlayPaths; -- cgit v1.2.3